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