Skyline Lua API  Version 1.0
Lua Script Reference for Skyline Game Engine.
LUA_API_RakNet.h
Go to the documentation of this file.
1 // | _ ____ __ _
2 // | / \ _ _ _ __ __ _/ ___| ___ / _| |_
3 // | / _ \| | | | '__/ _` \___ \ / _ \| |_| __|
4 // | / ___ \ |_| | | | (_| |___) | (_) | _| |_
5 // | /_/ \_\__,_|_| \__,_|____/ \___/|_| \__|
6 // |
7 // | Aurasoft UK 2008 - 2018 http://www.aurasoft.co.uk
8 // |
9 // | Skyline Game Engine Lua API Documentation
10 // |
11 // | This file belongs to Aurasoft UK for the Skyline Game Engine of all versions.
12 // | This file is not for use in any other software that is not owned by Aurasoft UK and cannot be used by any other
13 // | person outside of the Skyline Game Engine development team.
14 // |
15 // | © Copyright - Aurasoft UK & Skyline Game Engine 2008 - 2018
16 // |
17 
18 // SKYLINE LUA CLASS FOR API DOCUMENTATION
19 
31 class raknet
32 {
33 public:
34 
47  void dissconnect();
48 
63  void OpenServer(String port, int maxConnections, String Password, GlobalEnum THREAD_TYPE);
64 
83  void OpenClient(int IP, String port, String password, GlobalEnum THREAD_TYPE);
84 
121  void Subscribe(GlobalEnum ID, functionCall);
122 
153  void Send(int Stream);
154 
174  void SendImmediate(int Stream, int clientID);
175 
189  void update();
190 
200  void Ban(user , value);
201 
211  void RemoveBan(user, value);
212 
222  int id IsBanned();
223 
233  void Kick();
234 
244  void GetUserNetwork();
245 
273  String Ping();
274 
287  String Stats(int clientID);
288 
302  void Sleep(int ms);
303 
318  void bitStreamCreate();
319 
373  void bitStreamWrite();
374 
401  void bitStreamRead();
402 
418  void SendPosition(int objID, float x, float y, float z);
419 };
void SendImmediate(int Stream, int clientID)
Sends a prepared message to the network. : Stream this is a returned value from the raknet...
void Subscribe(GlobalEnum ID, functionCall)
Special Lua callback to connect messages with user functions.
void update()
Updates the raknet system and sends any messages throught the subscribe() option. ...
String Ping()
Ping returns in ms.
void Ban(user, value)
Bans a user.
void Kick()
Kick out a user.
Definition: LUA_API_RakNet.h:31
void GetUserNetwork()
GetUserNetwork.
void bitStreamWrite()
Write to a created bitsteam. This message can be repeated many times for various data.
void OpenClient(int IP, String port, String password, GlobalEnum THREAD_TYPE)
Opens a Client.
void SendPosition(int objID, float x, float y, float z)
Sends a prepared entity setPosition to the network. The player doesnt get a signal back all users app...
void RemoveBan(user, value)
Remove a Ban.
void Sleep(int ms)
Puse the system for x ms.
void OpenServer(String port, int maxConnections, String Password, GlobalEnum THREAD_TYPE)
Opens a server.
void dissconnect()
Stops a server or client when called.
void bitStreamCreate()
Creats a bitsteam for writing to.
void Send(int Stream)
Sends a prepared message to the network. : Stream this is a returned value from the raknet...
int id IsBanned()
check for ban
void bitStreamRead()
Read data from a bitsteam in the same order that is was created.
String Stats(int clientID)
display current server Statistics