public void GatherBaronies() { foreach (var child in Scope.Children) { if (child is ScriptCommand) { ScriptCommand c = (ScriptCommand)child; if (c.Name.StartsWith("b_")) { String str = c.Value.ToString(); if (c.Value.ToString() == "temple") { var t = new Barony() { type = c.Value.ToString(), title = c.Name, province = this }; Temples.Add(t); MapManager.instance.Temples[c.Name] = t; } } } } }
public void GatherBaronies() { foreach (var child in Scope.Children) { if (child is ScriptCommand) { ScriptCommand c = (ScriptCommand) child; if (c.Name.StartsWith("b_")) { String str = c.Value.ToString(); if (c.Value.ToString() == "temple") { var t = new Barony() {type = c.Value.ToString(), title = c.Name, province = this}; Temples.Add(t); MapManager.instance.Temples[c.Name] = t; } } } } }
public override void _Ready() { base._Ready(); _parentBarony = (Barony)GetParent(); _populationLabel = (Label)GetNode("VBoxContainer/PopulationLabel"); }
public void UpdateCurrentBarony(Barony barony) { _currentBarony = barony; }