예제 #1
0
		public BattleWellPiece(BattleWell well, int itemid)
			: base(itemid)
		{
			Well = well;
		}
예제 #2
0
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();

			switch (version)
			{
				case 0:
					Well = reader.ReadItem<BattleWell>();
					break;
			}
		}
예제 #3
0
        public virtual void InvalidateBattleWell()
        {
            if (State == PvPBattleState.Internal || BattleWellLoc.Internal || BattleWellLoc.Zero)
            {
                if (BattleWell != null)
                {
                    BattleWell.Delete();
                    BattleWell = null;
                }

                return;
            }

            if (BattleWell == null || BattleWell.Deleted)
            {
                BattleWell = new BattleWell(this);

                if (!BattleWellLoc.MoveToWorld(BattleWell))
                {
                    BattleWell.MoveToWorld(BattleWellLoc, BattleWellLoc);
                }
            }

            if (BattleWell.Battle == null)
            {
                BattleWell.Battle = this;
            }
        }