Пример #1
0
		//master constructor
		
		public BombBag( BombermanControlItem controlitem, int maxbombs, int bombstrength ) : base( 0xE76 )
		{
			ControlItem = controlitem;
			
			Hue = 1161;
			Name = "Bomb Bag";
			
			//locked down in backpack
			Movable = false;
			
			MaxBombs = maxbombs;
			BombStrength = bombstrength;
			Active = true;
		}
Пример #2
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			
			int version = reader.ReadInt();

			_Owner = reader.ReadMobile();
			MaxBombs = reader.ReadInt();
			BombStrength = reader.ReadInt();
			
			_SpeedUpgraded = reader.ReadBool();
			
			Detonator = (BombDetonator)reader.ReadItem();
			ControlItem = (BombermanControlItem)reader.ReadItem();
			
			int count = reader.ReadInt();
			
			for( int i = 0; i < count; i++ )
			{
				Bombs.Add( (Bomb)reader.ReadItem() );
			}
			
			Active = reader.ReadBool();
		}