RakNetCSharpCPlusIncludes.i 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. //This is not parsed by swig but inserted into the generated C++ wrapper, these includes
  2. //are needed so the wrapper includes the needed .h filese
  3. //This also includes the typemaps used.
  4. %{
  5. /* Includes the header in the wrapper code */
  6. //Defines
  7. #ifdef SWIGWIN
  8. #define _MSC_VER 10000
  9. #define WIN32
  10. #define _WIN32
  11. #define _DEBUG
  12. #define _RAKNET_DLL
  13. #endif SWIGWIN
  14. //TypeDefs
  15. typedef int int32_t;
  16. typedef unsigned int uint32_t;
  17. typedef uint32_t DefaultIndexType;
  18. #ifdef SWIGWIN
  19. typedef unsigned int SOCKET;
  20. #endif
  21. //Includes
  22. #include "RakNetSmartPtr.h"
  23. #include "RakNetDefines.h"
  24. #include "MessageIdentifiers.h"
  25. #include "Export.h"
  26. #include "SimpleMutex.h"
  27. #include "RakString.h"
  28. #include "RakWString.h"
  29. #include "BitStream.h"
  30. #include "DS_List.h"
  31. #include "DS_ByteQueue.h"
  32. #include "RakAssert.h"
  33. #include "NativeTypes.h"
  34. #include "SocketIncludes.h"
  35. #include "RakNetTime.h"
  36. #include "Export.h"
  37. #include "RakMemoryOverride.h"
  38. #include "RakNetTypes.h"
  39. #include "RakNetSocket.h"
  40. #include "RakNetStatistics.h"
  41. #include "NetworkIDObject.h"
  42. #include "NetworkIDManager.h"
  43. #include "RakNetTime.h"
  44. //The below three classes have been removed from interface, if PluginInterface2 is fully exposed again
  45. //or another class needs them uncomment them and the related typemaps
  46. //#include "TCPInterface.h"
  47. //#include "PacketizedTCP.h"
  48. //#include "InternalPacket.h"
  49. #include "PluginInterface2.h"
  50. #include "RakPeerInterface.h"
  51. #include "RakPeer.h"
  52. #include "PacketPriority.h"
  53. #include "PacketLogger.h"
  54. #include "PacketFileLogger.h"
  55. #include "NatTypeDetectionClient.h"
  56. #include "NatPunchthroughClient.h"
  57. #include "Router2.h"
  58. #include "UDPProxyClient.h"
  59. #include "FullyConnectedMesh2.h"
  60. #include "ReadyEvent.h"
  61. //#include "TeamBalancer.h"
  62. #include "TeamManager.h"
  63. #include "NatPunchthroughServer.h"
  64. #include "UDPForwarder.h"
  65. #include "UDPProxyServer.h"
  66. #include "UDPProxyCoordinator.h"
  67. #include "NatTypeDetectionServer.h"
  68. #include "DS_BPlusTree.h"
  69. #include "DS_Table.h"
  70. #include "FileListTransferCBInterface.h"//
  71. #include "IncrementalReadInterface.h"//
  72. #include "FileListNodeContext.h"//
  73. #include "FileList.h"//
  74. #include "TransportInterface.h"//
  75. #include "CommandParserInterface.h"//
  76. #include "LogCommandParser.h"//
  77. #include "MessageFilter.h"//
  78. #include "DirectoryDeltaTransfer.h"//
  79. #include "FileListTransfer.h"//
  80. #include "ThreadsafePacketLogger.h"//
  81. #include "PacketConsoleLogger.h"//
  82. #include "PacketFileLogger.h"//
  83. #include "DS_Multilist.h"
  84. #include "ConnectionGraph2.h"
  85. #include "GetTime.h"
  86. //#include "RakNetTransport2.h"
  87. //#include "RoomsPlugin.h"
  88. //Macros
  89. //Swig C++ code only TypeDefs
  90. //Most of these are nested structs/classes that swig needs to understand as global
  91. //They will reference the nested struct/class while appearing global
  92. typedef RakNet::RakString::SharedString SharedString;
  93. typedef DataStructures::Table::Row Row;
  94. typedef DataStructures::Table::Cell Cell;
  95. typedef DataStructures::Table::FilterQuery FilterQuery;
  96. typedef DataStructures::Table::ColumnDescriptor ColumnDescriptor;
  97. typedef DataStructures::Table::SortQuery SortQuery;
  98. typedef RakNet::FileListTransferCBInterface::OnFileStruct OnFileStruct;
  99. typedef RakNet::FileListTransferCBInterface::FileProgressStruct FileProgressStruct;
  100. typedef RakNet::FileListTransferCBInterface::DownloadCompleteStruct DownloadCompleteStruct;
  101. %}
  102. #ifdef SWIG_ADDITIONAL_SQL_LITE
  103. %{
  104. #include "SQLite3PluginCommon.h"
  105. #include "SQLite3ClientPlugin.h"
  106. #include "SQLiteLoggerCommon.h"
  107. #include "SQLiteClientLoggerPlugin.h"
  108. #ifdef SWIG_ADDITIONAL_SQL_LITE_SERVER
  109. #include "SQLite3ServerPlugin.h"
  110. #include "SQLiteServerLoggerPlugin.h"
  111. #endif
  112. typedef RakNet::LogParameter::DataUnion DataUnion;
  113. typedef RakNet::SQLiteClientLoggerPlugin::ParameterListHelper ParameterListHelper;
  114. %}
  115. #endif
  116. #ifdef SWIG_ADDITIONAL_AUTOPATCHER
  117. %{
  118. #include "AutopatcherRepositoryInterface.h"
  119. #include "AutopatcherServer.h"
  120. #include "AutopatcherClient.h"
  121. #include "AutopatcherMySQLRepository.h"
  122. #include "CreatePatch.h"
  123. #include "MemoryCompressor.h"
  124. #include "ApplyPatch.h"
  125. #include "AutopatcherPatchContext.h"
  126. %}
  127. #endif
  128. %{
  129. using namespace RakNet;
  130. %}
粤ICP备19079148号