Example #1
0
        private static BroadcastMsgType GetBroadcastMsgType(string jsonString)
        {
            var obj = JsonConvert.DeserializeObject <dynamic>(jsonString);
            BroadcastMsgType type = obj.BroadcastMsgType;

            return(type);
        }
Example #2
0
 private static void EncodeMegaphoneText(COutPacket p, BroadcastMsgType nType, string sMsg)
 {
     p.Encode1((byte)nType);
     p.EncodeString(sMsg);
 }