Esempio n. 1
0
        public override void AddToGUIUpdateList()
        {
            if (Character.Controlled != null && Character.Controlled.SelectedConstruction != null && Character.Controlled.CanInteractWith(Character.Controlled.SelectedConstruction))
            {
                Character.Controlled.SelectedConstruction.AddToGUIUpdateList();
            }
            if (Character.Controlled?.Inventory != null)
            {
                foreach (Item item in Character.Controlled.Inventory.Items)
                {
                    if (item == null)
                    {
                        continue;
                    }
                    if (Character.Controlled.HasEquippedItem(item))
                    {
                        item.AddToGUIUpdateList();
                    }
                }
            }

            if (GameMain.GameSession != null)
            {
                GameMain.GameSession.AddToGUIUpdateList();
            }

            Character.AddAllToGUIUpdateList();
        }
Esempio n. 2
0
        public override void AddToGUIUpdateList()
        {
            if (Character.Controlled != null && Character.Controlled.SelectedConstruction != null && Character.Controlled.CanInteractWith(Character.Controlled.SelectedConstruction))
            {
                Character.Controlled.SelectedConstruction.AddToGUIUpdateList();
            }

            if (GameMain.GameSession != null)
            {
                GameMain.GameSession.AddToGUIUpdateList();
            }

            Character.AddAllToGUIUpdateList();
        }
Esempio n. 3
0
        public override void AddToGUIUpdateList()
        {
            if (Character.Controlled != null && Character.Controlled.SelectedConstruction != null)
            {
                if (Character.Controlled.SelectedConstruction == Character.Controlled.ClosestItem)
                {
                    Character.Controlled.SelectedConstruction.AddToGUIUpdateList();
                }
            }

            if (GameMain.GameSession != null)
            {
                GameMain.GameSession.AddToGUIUpdateList();
            }

            Character.AddAllToGUIUpdateList();
        }