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; }
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); }