private static BroadcastMsgType GetBroadcastMsgType(string jsonString) { var obj = JsonConvert.DeserializeObject <dynamic>(jsonString); BroadcastMsgType type = obj.BroadcastMsgType; return(type); }
private static void EncodeMegaphoneText(COutPacket p, BroadcastMsgType nType, string sMsg) { p.Encode1((byte)nType); p.EncodeString(sMsg); }