Beispiel #1
0
		public EActResults Close(Creature _creature, LiveMapCell _liveMapCell)
		{
			var door = new ClosedDoor(Material);
			door.SetLockType(m_eLockType);
			_liveMapCell.Thing = door;
			if (_creature.IsAvatar)
			{
				MessageManager.SendXMessage(this, new XMessage(EALTurnMessage.CREATURE_CLOSES_IT, _creature, this));
				//MessageManager.SendMessage(this, this[EPadej.IMEN] + " закрыта.");
			}
			return EActResults.DONE;
		}
Beispiel #2
0
        public EActResults Close(Creature _creature, LiveMapCell _liveMapCell)
        {
            var door = new ClosedDoor(Material);

            door.SetLockType(m_eLockType);
            _liveMapCell.Thing = door;
            if (_creature.IsAvatar)
            {
                MessageManager.SendXMessage(this, new XMessage(EALTurnMessage.CREATURE_CLOSES_IT, _creature, this));
                //MessageManager.SendMessage(this, this[EPadej.IMEN] + " закрыта.");
            }
            return(EActResults.DONE);
        }