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(); }
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(); }
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(); }