Example #1
0
        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;
                        }
                    }
                }
            }
        }
Example #2
0
        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;
                        }
                    }
                }
            }
        }
Example #3
0
 public override void _Ready()
 {
     base._Ready();
     _parentBarony    = (Barony)GetParent();
     _populationLabel = (Label)GetNode("VBoxContainer/PopulationLabel");
 }
 public void UpdateCurrentBarony(Barony barony)
 {
     _currentBarony = barony;
 }