// GameType.h class GameType { ... TNL_DECLARE_RPC(s2cSetPlayerScore, (U16 index, S32 score)); ... } // GameType.cpp GAMETYPE_RPC_S2C(GameType, s2cSetPlayerScore, (U16 index, S32 score), (index, score)) { TNLAssert(index < U32(mGame->getClientCount()), "teamIndex out of range"); if(index < U32(mGame->getClientCount())) mGame->getClientInfo(index)->setScore(score); updateLeadingTeamAndScore(); }