public override int LabelNumber{ get{ return 1041117; } } // a tree for the holidays public TreeTrunk( HolidayTree tree, int itemID ) : base( itemID ) { Movable = false; MoveToWorld( tree.Location, tree.Map ); m_Tree = tree; }
public override void Deserialize(IGenericReader reader) { base.Deserialize(reader); var version = reader.ReadInt(); switch (version) { case 0: { m_Tree = reader.ReadItem() as HolidayTree; if (m_Tree == null) { Delete(); } break; } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 0: { m_Tree = reader.ReadItem() as HolidayTree; if ( m_Tree == null ) Delete(); break; } } }
public void EndPlace( Mobile from, HolidayTreeType type, Point3D loc ) { this.Delete(); HolidayTree tree = new HolidayTree( from, type, loc ); BaseHouse house = BaseHouse.FindHouseAt( tree ); if ( house != null ) house.Addons.Add( tree ); }