Example #1
0
 public static string Serialize(Message m)
 {
     return JsonConvert.SerializeObject(m, new JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver() });
 }
Example #2
0
 private void Send(Player p, Message m)
 {
     p.Send(Serialize(m));
 }