public LastManPentagram()
     : base(0x1F1C)
 {
     m_Count = 10;
     m_TimerTicksRequired = 10;
     m_Addon = new PentagramAddon();
     Movable = false;
     Visible = false;
 }
Beispiel #2
0
		public static GauntletSpawner CreateSpawner( string typeName, int xSpawner, int ySpawner, int xDoor, int yDoor, int xPentagram, int yPentagram, bool doorEastToWest, int xStart, int yStart, int xWidth, int yHeight )
		{
			GauntletSpawner spawner = new GauntletSpawner( typeName );

			spawner.MoveToWorld( new Point3D( xSpawner, ySpawner, -1 ), Map.Malas );

			if ( xDoor > 0 && yDoor > 0 )
				spawner.Door = CreateDoorSet( xDoor, yDoor, doorEastToWest, 0 );

			spawner.RegionBounds = new Rectangle2D( xStart, yStart, xWidth, yHeight );

			if ( xPentagram > 0 && yPentagram > 0 )
			{
				PentagramAddon pentagram = new PentagramAddon();

				pentagram.MoveToWorld( new Point3D( xPentagram, yPentagram, -1 ), Map.Malas );

				spawner.Addon = pentagram;
			}

			return spawner;
		}
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch ( version )
            {
                case 2:
                {
                    m_TimerTicksRequired = reader.ReadEncodedInt();
                    if (m_TimerTicksRequired == 0)
                        m_TimerTicksRequired = 10;
                    goto case 1;
                }
                case 1:
                {
                    m_Location = reader.ReadString();
                    m_giveReward = reader.ReadBool();
                    goto case 0;
                }
                case 0:
                {
                    m_Addon = reader.ReadItem() as PentagramAddon;
                    m_Count = reader.ReadInt();
                    break;
                }
            }
        }
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);
			int version = reader.ReadInt();

			switch ( version )
			{
				case 0:
				{
					m_TimerTicksRequired = reader.ReadEncodedInt();
					m_Location = reader.ReadString();
					m_Addon = reader.ReadItem() as PentagramAddon;
					m_Count = reader.ReadInt();
					break;
				}
			}
		}