private unsafe void RequestTotalUser() { Debug.Log("RequestTotalUser"); LobbyActionRequest lr = new LobbyActionRequest() { header = Header.LOBBY_ACTION_HEADER, code = LobbyActionCode.LOBBY_ACTION_CODE_TOTAL }; Star.SendData(&lr, sizeof(LobbyActionRequest)); }
private unsafe void RequestFectchRanking(Action <LobbyActionCode> response) { fetchRankingDataCallback = response; for (sbyte i = 1; i <= MaxUser; i++) { LobbyActionRequest lobbyActionReq = new LobbyActionRequest() { header = Header.LOBBY_ACTION_HEADER, code = LobbyActionCode.LOBBY_ACTION_CODE_RANK, id = i }; Star.SendData(&lobbyActionReq, sizeof(LobbyActionRequest)); } }