Beispiel #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Addon  = reader.ReadItem() as BaseAddonContainer;
            m_Offset = reader.ReadPoint3D();

            if (m_Addon != null)
            {
                m_Addon.OnComponentLoaded(this);
            }

            AddonComponent.ApplyLightTo(this);
        }
Beispiel #2
0
        public AddonContainerComponent(int itemID) : base(itemID)
        {
            Movable = false;

            AddonComponent.ApplyLightTo(this);
        }