ApplyLightTo() public static method

public static ApplyLightTo ( Server.Items.Item item ) : void
item Server.Items.Item
return void
Exemplo n.º 1
0
        public BaseAddonContainer(int itemID)
            : base(itemID)
        {
            AddonComponent.ApplyLightTo(this);

            m_Components = new List <AddonContainerComponent>();
        }
Exemplo n.º 2
0
        public AddonContainerComponent(int itemID)
            : base(itemID)
        {
            Movable = false;

            AddonComponent.ApplyLightTo(this);
        }
Exemplo n.º 3
0
        public BaseAddonContainer(int itemID)
            : base(itemID)
        {
            Movable = false;

            AddonComponent.ApplyLightTo(this);

            m_Components = new ArrayList();
        }
Exemplo n.º 4
0
        public BaseAddonContainer(int itemID)
            : base(itemID)
        {
            Movable = false;

            AddonComponent.ApplyLightTo(this);

            this.m_Components = new List <AddonContainerComponent>();
        }
Exemplo n.º 5
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Components = reader.ReadStrongItemList <AddonContainerComponent>();

            AddonComponent.ApplyLightTo(this);
        }
Exemplo n.º 6
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            /*int version = */
            reader.ReadInt();

            m_Components = reader.ReadItemList();

            AddonComponent.ApplyLightTo(this);
        }
        public override void Deserialize(IGenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Components = reader.ReadEntityList <AddonContainerComponent>();
            m_Resource   = (CraftResource)reader.ReadInt();

            AddonComponent.ApplyLightTo(this);
        }
Exemplo n.º 8
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);
        }