Ejemplo n.º 1
0
 public void SendMsgToAll(Message[] infoDatas)
 {
     Broadcast(PacketBuilder.BuildPacket((int)SystemCategory.MessageSystem, (int)MessageCommand.MessageResp, MessageRespPayload.CreatePayload(MessageAck.Success, infoDatas.ToArray())));
 }
Ejemplo n.º 2
0
 public void SendLastMessage(Player player)
 {
     var values = RedisHelper.GetRedisDb(RedisHelper.RedisDbNum.MsgData).ListRange(GetSystemRedisKey(), -100, -1);
     var MsgInfoList = new List<Message>();
     foreach (string value in values)
     {
         MsgInfoList.Add(new Message { MessageString = value });
     }
     Send(player, PacketBuilder.BuildPacket((int)SystemCategory.MessageSystem, (int)MessageCommand.MessageResp, MessageRespPayload.CreatePayload(MessageAck.Success, MsgInfoList.ToArray())));
 }