Advertisement
Codeblocks

Client.pkg

Aug 17th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  1. $#include "Netwerks/Server/Client/Client.h"
  2. $using namespace Netwerks;
  3. class Client {
  4.     void OnConnected();
  5.     void OnDisconnected(unsigned short reason);
  6.     bool IsReady();
  7.     bool IsDropped();
  8.     void Drop();
  9.  
  10.     //Bandwidth
  11.     long GetIncomingBandwidth();
  12.     long GetOutgoingBandwidth();
  13.  
  14.     //Packet
  15.     long GetPacketsLost();
  16.     long GetPacketsSent();
  17.     long GetPacketLoss();
  18.  
  19.     //Round trip
  20.     long GetRTT();
  21.     long GetLastRTT();
  22.     long GetRTTVariance();
  23.  
  24.     unsigned short UserID();
  25.  
  26.     Leadwerks::BasePlayer* GetPlayer();
  27. };
  28.  
  29. /*
  30. In cmd (windows) do:
  31. cd ./ProjectName/Source/ (get to your project's source directory)
  32.  
  33. tolua++ -o Tolua/tolua_BindingName.cpp -n BindingName BindingName.pkg
  34.  
  35. so for this ^ pkg file I do:
  36.  
  37. tolua++ -o Tolua/tolua_Client.cpp -n Client Tolua/pkg/Client.pkg
  38.  
  39. then don't forget to run the open method of the new 'Client' binding somewhere.
  40. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement