/list command improvements

Coding style, Guid, interface, Fallback Command
This commit is contained in:
ORelio 2014-11-10 20:43:00 +01:00
parent 5d1aee46c2
commit f82041288d
4 changed files with 72 additions and 49 deletions

View file

@ -21,10 +21,7 @@ namespace MinecraftClient.Protocol
string getUsername();
string getUserUUID();
string getSessionID();
void addPlayer(string uuid, string name);
void removePlayer(string uuid);
HashSet<string> getPlayers();
string[] getOnlinePlayers();
/// <summary>
/// This method is called when the protocol handler receives a chat message
@ -32,6 +29,21 @@ namespace MinecraftClient.Protocol
void OnTextReceived(string text);
/// <summary>
/// This method is called when a new player joins the game
/// </summary>
/// <param name="uuid">UUID of the player</param>
/// <param name="name">Name of the player</param>
void OnPlayerJoin(Guid uuid, string name);
/// <summary>
/// This method is called when a player has left the game
/// </summary>
/// <param name="uuid">UUID of the player</param>
void OnPlayerLeave(Guid uuid);
/// <summary>
/// This method is called when the connection has been lost
/// </summary>