Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }