Esempio n. 1
0
 public static void DeleteCharacter(int userId, int charSlot)
 {
     if (DatabaseFunctions.DeleteCharacter(userId, charSlot))
     {
         AgentConnection.connection.SendObject("CharacterDeleteSuccess", userId);
     }
     else
     {
         var errorCode = 0; //TODO implement Errocodes
         AgentConnection.connection.SendObject("CharacterDeleteFailed", new [] { errorCode, userId });
     }
 }