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