public void SendHashCodes(int firstHashTick, List <int> allHashCodes, int startIdx, int count) { Msg_HashCode msg_HashCode = new Msg_HashCode(); msg_HashCode.StartTick = firstHashTick; msg_HashCode.HashCodes = new int[count]; for (int i = startIdx; i < count; i++) { msg_HashCode.HashCodes[i] = allHashCodes[i]; } SendUdp(EMsgSC.C2G_HashCode, msg_HashCode); }
public void SendHashCodes(int firstHashTick, List <long> allHashCodes, int startIdx, int count) { Msg_HashCode msg = new Msg_HashCode(); msg.startTick = firstHashTick; msg.hashCodes = new long[count]; for (int i = startIdx; i < count; i++) { msg.hashCodes[i] = allHashCodes[i]; } SendMsgRoom(EMsgCS.C2S_HashCode, msg); }