RakNetCSharpRenames.i 1.1 KB

12345678910111213141516171819202122232425
  1. //--------------------------Renames--------------------------------
  2. //These are renames, to make the interface a different name than the C++ interface
  3. //There are many reasons to do this sometimes the original function is useful but not perfect and a pure
  4. //C# helper is created. The original is renamed and hidden.
  5. //operators need renaming
  6. //Some items may conflict with C#, they would need renaming
  7. %rename(GET_BASE_OBJECT_FROM_IDORIG) RakNet::NetworkIDManager::GET_BASE_OBJECT_FROM_ID;
  8. %rename(SetNetworkIDManagerOrig) RakNet::NetworkIDObject::SetNetworkIDManager;
  9. %rename(GetBandwidthOrig) RakNet::RakPeer::GetBandwidth;
  10. %rename(GetBandwidthOrig) RakNet::RakPeerInterface::GetBandwidth;
  11. %rename(Equals) operator ==;
  12. %rename(CopyData) operator =;
  13. %rename(OpLess) operator <;
  14. %rename(OpGreater) operator >;
  15. %rename(OpArray) operator [];
  16. %rename(OpLessEquals) operator <=;
  17. %rename(OpGreaterEquals) operator >=;
  18. %rename(OpNotEqual) operator !=;
  19. %rename(OpPlus) operator +;
  20. %rename(OpPlusPlus) operator ++;
  21. %rename(OpMinusMinus) operator --;
  22. %rename(OpMinus) operator -;
  23. %rename(OpDivide) operator /;
  24. %rename(OpMultiply) operator *;
粤ICP备19079148号