public override void SetupForProjector() { base.SetupForProjector(); if (Inventory != null) { Inventory.Clear(); } }
public override void SetupForProjector() { base.SetupForProjector(); if (Inventory != null) { Inventory.Clear(); } if (ComponentContainer != null) { var comp = ComponentContainer.Components.Find((s) => s.Component.TypeId == typeof(MyObjectBuilder_Inventory)); if (comp != null) { (comp.Component as MyObjectBuilder_Inventory).Clear(); } } }
public override void SetupForProjector() { base.SetupForProjector(); if (Inventory != null) { Inventory.Clear(); } if (OutputInventory != null) { OutputInventory.Clear(); } if (ComponentContainer != null) { foreach (var comp in ComponentContainer.Components) { if (comp.Component.TypeId == typeof(MyObjectBuilder_InventoryAggregate)) { (comp.Component as MyObjectBuilder_InventoryAggregate).Clear(); } } } }