Пример #1
0
            public override void Deserialize(GenericReader reader)
            {
                base.Deserialize(reader);

                int version = reader.ReadInt();
                switch (version)
                {
                    case 1:
                        m_parent = (Cage)reader.ReadItem();
                        break;
                    default:
                        break;
                }
            }
Пример #2
0
            public override int LabelNumber { get { return 1016152; } } // a tree ornament

            public CagePart(int itemID, Cage parent)
                : base(itemID)
            {
                m_parent = parent;
                Movable = false;
            }