Removed some deprecation messages. Added some more docs.

This commit is contained in:
Zack Piispanen 2012-06-01 13:08:53 -04:00
parent 50ecce618e
commit be45fb762b
3 changed files with 15 additions and 7 deletions

View file

@ -695,6 +695,11 @@ namespace TShockAPI
return TShock.SendBytes(Netplay.serverSock[Index], data);
}
/// <summary>
/// Adds a command callback to a specified command string.
/// </summary>
/// <param name="name">The string representing the command i.e "yes" == /yes</param>
/// <param name="callback">The method that will be executed on confirmation ie user accepts</param>
public void AddResponse( string name, Action<object> callback)
{
if( AwaitingResponse.ContainsKey(name))