This commit is contained in:
2015-10-02 13:40:02 +02:00
parent 5049bd3a38
commit 9c8c87efaa
4 changed files with 36 additions and 8 deletions
+5 -1
View File
@@ -52,7 +52,7 @@ namespace ErgometerLibrary
ChatMessage = chat;
}
public NetCommand(string name, bool doctor, int session)
public NetCommand(string name, bool doctor, string password, int session)
{
Type = CommandType.LOGIN;
Session = session;
@@ -60,12 +60,16 @@ namespace ErgometerLibrary
DisplayName = name;
IsDoctor = doctor;
Password = password;
}
public static NetCommand Parse(string command)
{
string[] com = command.Split('»');
Console.WriteLine(command);
Console.WriteLine(com[0]);
int comType = int.Parse(com[0]);
int session = 0;
if (com[1].StartsWith("ses"))