MUDServer.Player.SendPrompt C# (CSharp) Method

SendPrompt() public method

public SendPrompt ( ) : void
return void
        public void SendPrompt()
        {
            _LastPrompt = true;
            Client.SendText(String.Format("{0}/{1}hp> ", CurrentHealth, MaximumHealth));
        }

Usage Example

コード例 #1
0
 private static bool CheckPlayerIsAlive(Player p)
 {
     if (p.CurrentHealth <= 0)
     {
         p.SendMessage("You can't do that while dead.");
         p.SendPrompt();
         return(false);
     }
     return(true);
 }
All Usage Examples Of MUDServer.Player::SendPrompt