mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Remove useless ref macro, since it conflicts with VS2010's libraries.
The compiler warnings will have to be cleaned up later (without the use of a silly macro)
(cherry picked from commit 4218993bf5
)
This commit is contained in:
@ -150,8 +150,6 @@ void IBlueSpiral::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
|
||||
|
||||
//============================================================================
|
||||
void IBlueSpiral::RecvClothOrder (const Srv2Cli_BlueSpiral_ClothOrder & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -159,8 +157,6 @@ void IBlueSpiral::RecvClothOrder (const Srv2Cli_BlueSpiral_ClothOrder & msg, voi
|
||||
|
||||
//============================================================================
|
||||
void IBlueSpiral::RecvSuccessfulHit (const Srv2Cli_BlueSpiral_SuccessfulHit & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -168,8 +164,6 @@ void IBlueSpiral::RecvSuccessfulHit (const Srv2Cli_BlueSpiral_SuccessfulHit & ms
|
||||
|
||||
//============================================================================
|
||||
void IBlueSpiral::RecvGameWon (const Srv2Cli_BlueSpiral_GameWon & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -177,8 +171,6 @@ void IBlueSpiral::RecvGameWon (const Srv2Cli_BlueSpiral_GameWon & msg, void * pa
|
||||
|
||||
//============================================================================
|
||||
void IBlueSpiral::RecvGameOver (const Srv2Cli_BlueSpiral_GameOver & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -186,8 +178,6 @@ void IBlueSpiral::RecvGameOver (const Srv2Cli_BlueSpiral_GameOver & msg, void *
|
||||
|
||||
//============================================================================
|
||||
void IBlueSpiral::RecvGameStarted (const Srv2Cli_BlueSpiral_GameStarted & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
|
@ -151,7 +151,6 @@ void IClimbingWall::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
|
||||
|
||||
//============================================================================
|
||||
void IClimbingWall::RecvNumBlockersChanged (const Srv2Cli_ClimbingWall_NumBlockersChanged & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
@ -160,7 +159,6 @@ void IClimbingWall::RecvNumBlockersChanged (const Srv2Cli_ClimbingWall_NumBlocke
|
||||
|
||||
//============================================================================
|
||||
void IClimbingWall::RecvReady (const Srv2Cli_ClimbingWall_Ready & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
@ -169,7 +167,6 @@ void IClimbingWall::RecvReady (const Srv2Cli_ClimbingWall_Ready & msg, void * pa
|
||||
|
||||
//============================================================================
|
||||
void IClimbingWall::RecvBlockersChanged (const Srv2Cli_ClimbingWall_BlockersChanged & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
@ -178,7 +175,6 @@ void IClimbingWall::RecvBlockersChanged (const Srv2Cli_ClimbingWall_BlockersChan
|
||||
|
||||
//============================================================================
|
||||
void IClimbingWall::RecvPlayerEntered (const Srv2Cli_ClimbingWall_PlayerEntered & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
@ -187,7 +183,6 @@ void IClimbingWall::RecvPlayerEntered (const Srv2Cli_ClimbingWall_PlayerEntered
|
||||
|
||||
//============================================================================
|
||||
void IClimbingWall::RecvSuitMachineLocked (const Srv2Cli_ClimbingWall_SuitMachineLocked & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
@ -196,7 +191,6 @@ void IClimbingWall::RecvSuitMachineLocked (const Srv2Cli_ClimbingWall_SuitMachin
|
||||
|
||||
//============================================================================
|
||||
void IClimbingWall::RecvGameOver (const Srv2Cli_ClimbingWall_GameOver & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
@ -359,4 +353,4 @@ void pfGmClimbingWall::Panic () {
|
||||
msg.transId = 0;
|
||||
|
||||
GameMgrSend(&msg);
|
||||
}
|
||||
}
|
||||
|
@ -151,7 +151,6 @@ void IHeek::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvPlayGame (const Srv2Cli_Heek_PlayGame & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -159,7 +158,6 @@ void IHeek::RecvPlayGame (const Srv2Cli_Heek_PlayGame & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvGoodbye (const Srv2Cli_Heek_Goodbye & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -167,7 +165,6 @@ void IHeek::RecvGoodbye (const Srv2Cli_Heek_Goodbye & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvWelcome (const Srv2Cli_Heek_Welcome & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -175,7 +172,6 @@ void IHeek::RecvWelcome (const Srv2Cli_Heek_Welcome & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvDrop (const Srv2Cli_Heek_Drop & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -183,7 +179,6 @@ void IHeek::RecvDrop (const Srv2Cli_Heek_Drop & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvSetup (const Srv2Cli_Heek_Setup & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -191,7 +186,6 @@ void IHeek::RecvSetup (const Srv2Cli_Heek_Setup & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvLightState (const Srv2Cli_Heek_LightState & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -199,7 +193,6 @@ void IHeek::RecvLightState (const Srv2Cli_Heek_LightState & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvInterfaceState (const Srv2Cli_Heek_InterfaceState & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -207,7 +200,6 @@ void IHeek::RecvInterfaceState (const Srv2Cli_Heek_InterfaceState & msg, void *
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvCountdownState (const Srv2Cli_Heek_CountdownState & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -215,7 +207,6 @@ void IHeek::RecvCountdownState (const Srv2Cli_Heek_CountdownState & msg, void *
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvWinLose (const Srv2Cli_Heek_WinLose & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -223,7 +214,6 @@ void IHeek::RecvWinLose (const Srv2Cli_Heek_WinLose & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvGameWin (const Srv2Cli_Heek_GameWin & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -231,7 +221,6 @@ void IHeek::RecvGameWin (const Srv2Cli_Heek_GameWin & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IHeek::RecvPointUpdate (const Srv2Cli_Heek_PointUpdate & msg, void * param) {
|
||||
REF(param);
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
|
@ -175,8 +175,6 @@ void IMarker::RecvTeamAssigned (const Srv2Cli_Marker_TeamAssigned & msg, void *
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvGameType (const Srv2Cli_Marker_GameType & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -184,8 +182,6 @@ void IMarker::RecvGameType (const Srv2Cli_Marker_GameType & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvGameStarted (const Srv2Cli_Marker_GameStarted & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -193,8 +189,6 @@ void IMarker::RecvGameStarted (const Srv2Cli_Marker_GameStarted & msg, void * pa
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvGamePaused (const Srv2Cli_Marker_GamePaused & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -202,8 +196,6 @@ void IMarker::RecvGamePaused (const Srv2Cli_Marker_GamePaused & msg, void * para
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvGameReset (const Srv2Cli_Marker_GameReset & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -211,8 +203,6 @@ void IMarker::RecvGameReset (const Srv2Cli_Marker_GameReset & msg, void * param)
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvGameOver (const Srv2Cli_Marker_GameOver & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -220,8 +210,6 @@ void IMarker::RecvGameOver (const Srv2Cli_Marker_GameOver & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvGameNameChanged (const Srv2Cli_Marker_GameNameChanged & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -229,8 +217,6 @@ void IMarker::RecvGameNameChanged (const Srv2Cli_Marker_GameNameChanged & msg, v
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvTimeLimitChanged (const Srv2Cli_Marker_TimeLimitChanged & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -238,8 +224,6 @@ void IMarker::RecvTimeLimitChanged (const Srv2Cli_Marker_TimeLimitChanged & msg,
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvGameDeleted (const Srv2Cli_Marker_GameDeleted & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -250,8 +234,6 @@ void IMarker::RecvGameDeleted (const Srv2Cli_Marker_GameDeleted & msg, void * pa
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvMarkerAdded (const Srv2Cli_Marker_MarkerAdded & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -259,8 +241,6 @@ void IMarker::RecvMarkerAdded (const Srv2Cli_Marker_MarkerAdded & msg, void * pa
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvMarkerDeleted (const Srv2Cli_Marker_MarkerDeleted & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -268,8 +248,6 @@ void IMarker::RecvMarkerDeleted (const Srv2Cli_Marker_MarkerDeleted & msg, void
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvMarkerNameChanged (const Srv2Cli_Marker_MarkerNameChanged & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -277,8 +255,6 @@ void IMarker::RecvMarkerNameChanged (const Srv2Cli_Marker_MarkerNameChanged & ms
|
||||
|
||||
//============================================================================
|
||||
void IMarker::RecvMarkerCaptured (const Srv2Cli_Marker_MarkerCaptured & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
|
@ -153,8 +153,6 @@ void ITicTacToe::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
|
||||
|
||||
//============================================================================
|
||||
void ITicTacToe::RecvGameStarted (const Srv2Cli_TTT_GameStarted & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
// player that goes first is shown as X's.
|
||||
if (msg.yourTurn) {
|
||||
myself = 'X';
|
||||
@ -172,8 +170,6 @@ void ITicTacToe::RecvGameStarted (const Srv2Cli_TTT_GameStarted & msg, void * pa
|
||||
|
||||
//============================================================================
|
||||
void ITicTacToe::RecvGameOver (const Srv2Cli_TTT_GameOver & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -183,8 +179,6 @@ void ITicTacToe::RecvGameOver (const Srv2Cli_TTT_GameOver & msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void ITicTacToe::RecvMoveMade (const Srv2Cli_TTT_MoveMade & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
// Update the board with the appropriate piece
|
||||
if (msg.playerId == NetCommGetPlayer()->playerInt)
|
||||
board[msg.row][msg.col] = myself;
|
||||
|
@ -150,8 +150,6 @@ void IVarSync::OnOwnerChange (const Srv2Cli_Game_OwnerChange & msg) {
|
||||
|
||||
//============================================================================
|
||||
void IVarSync::RecvStringVarChanged (const Srv2Cli_VarSync_StringVarChanged & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -159,8 +157,6 @@ void IVarSync::RecvStringVarChanged (const Srv2Cli_VarSync_StringVarChanged & ms
|
||||
|
||||
//============================================================================
|
||||
void IVarSync::RecvNumericVarChanged (const Srv2Cli_VarSync_NumericVarChanged & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -168,8 +164,6 @@ void IVarSync::RecvNumericVarChanged (const Srv2Cli_VarSync_NumericVarChanged &
|
||||
|
||||
//============================================================================
|
||||
void IVarSync::RecvAllVarsSent (const Srv2Cli_VarSync_AllVarsSent & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -177,8 +171,6 @@ void IVarSync::RecvAllVarsSent (const Srv2Cli_VarSync_AllVarsSent & msg, void *
|
||||
|
||||
//============================================================================
|
||||
void IVarSync::RecvStringVarCreated (const Srv2Cli_VarSync_StringVarCreated & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
@ -186,8 +178,6 @@ void IVarSync::RecvStringVarCreated (const Srv2Cli_VarSync_StringVarCreated & ms
|
||||
|
||||
//============================================================================
|
||||
void IVarSync::RecvNumericVarCreated (const Srv2Cli_VarSync_NumericVarCreated & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameCliMsg * gameCliMsg = NEWZERO(pfGameCliMsg);
|
||||
gameCliMsg->Set(gameCli, msg);
|
||||
gameCliMsg->Send(gameCli->GetReceiver());
|
||||
|
@ -205,8 +205,6 @@ void IGameMgr::RecvGameInstance (const Srv2Cli_GameMgr_GameInstance & msg, void
|
||||
|
||||
//============================================================================
|
||||
void IGameMgr::RecvInviteReceived (const Srv2Cli_GameMgr_InviteReceived & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameMgrMsg * gameMgrMsg = NEWZERO(pfGameMgrMsg);
|
||||
gameMgrMsg->Set(msg);
|
||||
for (unsigned i = 0; i < s_receivers.Count(); ++i)
|
||||
@ -216,8 +214,6 @@ void IGameMgr::RecvInviteReceived (const Srv2Cli_GameMgr_InviteReceived & msg, v
|
||||
|
||||
//============================================================================
|
||||
void IGameMgr::RecvInviteRevoked (const Srv2Cli_GameMgr_InviteRevoked & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
pfGameMgrMsg * gameMgrMsg = NEWZERO(pfGameMgrMsg);
|
||||
gameMgrMsg->Set(msg);
|
||||
for (unsigned i = 0; i < s_receivers.Count(); ++i)
|
||||
@ -587,31 +583,23 @@ void IGameCli::Recv (GameMsgHeader * msg, void * param) {
|
||||
|
||||
//============================================================================
|
||||
void IGameCli::RecvPlayerJoined (const Srv2Cli_Game_PlayerJoined & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
++playerCount;
|
||||
gameCli->OnPlayerJoined(msg);
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
void IGameCli::RecvPlayerLeft (const Srv2Cli_Game_PlayerLeft & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
--playerCount;
|
||||
gameCli->OnPlayerLeft(msg);
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
void IGameCli::RecvInviteFailed (const Srv2Cli_Game_InviteFailed & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
gameCli->OnInviteFailed(msg);
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
void IGameCli::RecvOwnerChange (const Srv2Cli_Game_OwnerChange & msg, void * param) {
|
||||
REF(param);
|
||||
|
||||
gameCli->OnOwnerChange(msg);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user