Exemplo n.º 1
0
		public EActResults Open(Creature _creature, LiveMapCell _liveMapCell)
		{
			var door = new OpenDoor(Material);
			door.SetLockType(m_eLockType);
			_liveMapCell.Thing = door;

			if (_creature.IsAvatar)
			{
				MessageManager.SendXMessage(this, new XMessage(EALTurnMessage.CREATURE_OPENS_IT, _creature, this));
			}
			return EActResults.DONE;
		}
Exemplo n.º 2
0
        public EActResults Open(Creature _creature, LiveMapCell _liveMapCell)
        {
            var door = new OpenDoor(Material);

            door.SetLockType(m_eLockType);
            _liveMapCell.Thing = door;

            if (_creature.IsAvatar)
            {
                MessageManager.SendXMessage(this, new XMessage(EALTurnMessage.CREATURE_OPENS_IT, _creature, this));
            }
            return(EActResults.DONE);
        }