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); }
public static void SendNearChatMessage(NearbyChatData data) { SendMessage("SendNearChatMessage", data); }