Update of /cvsroot/opentnl/tnl/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27643/test
Modified Files:
testGame.cpp testGame.h
Log Message:
Added tnlMethodDispatch files
Split RPC argument parsing and dispatch into seperate module
Moved compressed RPC types into tnlTypes.h
Removed StringTableEntry from being able to be transmitted as an argument to RPCs
Added StringTableEntryRef (and typedef) as valid RPC type
Updated all projects to reflect change to StringTableEntryRef
Index: testGame.h
===================================================================
RCS file: /cvsroot/opentnl/tnl/test/testGame.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** testGame.h 20 Apr 2004 04:27:18 -0000 1.1
--- testGame.h 6 May 2004 00:33:38 -0000 1.2
***************
*** 265,269 ****
/// that's possible using TNL's RPC. This RPC also sends bool and StringTableEntry data,
/// as well as showing the use of the TNL_DECLARE_RPC_ENUM macro.
! TNL_DECLARE_RPC(rpcGotPlayerPos, (bool b1, bool b2, StringTableEntry string, Float<PlayerPosReplyBitSize> x, Float<PlayerPosReplyBitSize> y));
/// TNL_DECLARE_NETCONNECTION is used to declare that TestConnection is a valid connection class to the
--- 265,269 ----
/// that's possible using TNL's RPC. This RPC also sends bool and StringTableEntry data,
/// as well as showing the use of the TNL_DECLARE_RPC_ENUM macro.
! TNL_DECLARE_RPC(rpcGotPlayerPos, (bool b1, bool b2, StringTableEntryRef string, Float<PlayerPosReplyBitSize> x, Float<PlayerPosReplyBitSize> y));
/// TNL_DECLARE_NETCONNECTION is used to declare that TestConnection is a valid connection class to the
Index: testGame.cpp
===================================================================
RCS file: /cvsroot/opentnl/tnl/test/testGame.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** testGame.cpp 20 Apr 2004 04:27:18 -0000 1.1
--- testGame.cpp 6 May 2004 00:33:38 -0000 1.2
***************
*** 355,361 ****
TNL_IMPLEMENT_NETCONNECTION(TestConnection, NetClassGroupGame, true);
! TNL_DECLARE_RPC_MEM_ENUM(TestConnection, PlayerPosReplyBitSize);
! TNL_IMPLEMENT_RPC(TestConnection, rpcGotPlayerPos, (bool b1, bool b2, StringTableEntry string, Float<TestConnection::PlayerPosReplyBitSize> x, Float<TestConnection::PlayerPosReplyBitSize> y),
NetClassGroupGameMask, RPCGuaranteedOrdered, RPCDirAny, 0)
{
--- 355,361 ----
TNL_IMPLEMENT_NETCONNECTION(TestConnection, NetClassGroupGame, true);
! TNL_DECLARE_ENUM(TestConnection::PlayerPosReplyBitSize);
! TNL_IMPLEMENT_RPC(TestConnection, rpcGotPlayerPos, (bool b1, bool b2, StringTableEntryRef string, Float<TestConnection::PlayerPosReplyBitSize> x, Float<TestConnection::PlayerPosReplyBitSize> y),
NetClassGroupGameMask, RPCGuaranteedOrdered, RPCDirAny, 0)
{
|