public override void Init(FSO.SimAntics.VMContext context) { if (UseWorld) { WorldUI.ObjectID = ObjectID; } if (Slots != null && Slots.Slots.ContainsKey(0)) { Contained = new VMEntity[Slots.Slots[0].Count]; if (UseWorld) { ((ObjectComponent)WorldUI).ContainerSlots = Slots.Slots[0]; } } base.Init(context); }
public override void Init(FSO.SimAntics.VMContext context) { if (UseWorld) { WorldUI.ObjectID = ObjectID; } PersistID = (uint)ObjectID; //temporary til theres a system to manage these if (Slots != null && Slots.Slots.ContainsKey(0)) { Contained = new VMEntity[Slots.Slots[0].Count]; if (UseWorld) { ((ObjectComponent)WorldUI).ContainerSlots = Slots.Slots[0]; } } base.Init(context); }