public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch( version ) { default: { int count = reader.ReadInt(); m_Components = new List<Item>( count ); for( int i = 0; i < count; ++i ) { Item item = reader.ReadItem(); if( item != null ) m_Components.Add( item ); } break; } } cellblock = new HoldingCell( X, Y, Map ); }
public JailCage( Mobile from ) : base( 1180 ) { Movable = false; MoveToWorld( from.Location, from.Map ); m_Components = new List<Item>(); cellblock = new HoldingCell( from.Location.X, from.Location.Y, from.Map ); AddItem( from, 1, 0, 0, new CagePart( 1180, this ), true ); // right upper AddItem( from, 1, 1, 0, new CagePart( 1180, this ), true ); // right lower AddItem( from, 0, 1, 0, new CagePart( 1180, this ), true ); // left lower AddItem( from, 1, 1, 0, new CagePart( 2082, this ), true ); // right lower AddItem( from, 1, 0, 0, new CagePart( 2081, this ), true ); //right center AddItem( from, 1, -1, 0, new CagePart( 2083, this ), true ); //right upper AddItem( from, -1, 1, 0, new CagePart( 2081, this ), true ); //left lower AddItem( from, -1, 0, 0, new CagePart( 2081, this ), true ); //left center //AddItem( from, -1, -1, 0, new cagePart( 2083 ),true );//left upper AddItem( from, 0, 1, 0, new CagePart( 2083, this ), true ); //center lower AddItem( from, 0, -1, 0, new CagePart( 2083, this ), true ); //center upper }