示例#1
0
        private NearbyChatData GetNearData(BroadcastMessageData data, List <long> idList)
        {
            var targetData = NearbyChatData.Allocate();

            targetData.BroadcastMsg = data;
            List <long>      nearIds = idList;
            NearbyRoleIdList ids     = NearbyRoleIdList.Allocate();

            foreach (long id in nearIds)
            {
                ids.RoleId.Add(id);
            }
            targetData.NearbyRoleIdListData = ids.ToByteString();
            targetData.Crc = 1;
            return(targetData);
        }
示例#2
0
 public static void SendNearChatMessage(NearbyChatData data)
 {
     SendMessage("SendNearChatMessage", data);
 }