Ejemplo n.º 1
0
 public void SaveCharacterData(string charID, ConnectedPlayer data)
 {
     using (var writer = DarkRiftWriter.Create())
     {
         writer.Write(new ServerCharData {
             charID = charID, jsonData = data.GetJsonString()
         });
         using (var message = Message.Create((ushort)MasterServerNoReplyTags.SaveCharacterData, writer))
         {
             masterServerManager.masterServer.SendMessage(message, SendMode.Reliable);
         }
     }
 }