示例#1
0
        public void Handle(object objData, Server_ServerClient client)
        {
            var data   = (Message_ClientRequest_DBStats)objData;
            var dbData = DBStats.GetPlayer(data.username, data.hashedPassword);
            var msg    = new Message_ServerResponse_DBStats()
            {
                spells = dbData
            };

            server.messageSender.Send(msg, client);
        }
示例#2
0
 /// <summary>
 /// Register player in all tables except LoginTable from which the id were incremented
 /// </summary>
 /// <param name="id">ID of the player</param>
 private static void RegisterPlayerInOtherTables(int id)
 {
     DBStats.RegisterNewPlayer(id);
     DBOwnedSpells.RegisterNewPlayer(id);
 }