Since i didn't have a solution to do a server-client data layer in Lua i decided to build one in C++. This is mainly due to being more familiar with multi threading in C++, And this kind of stuff needs to be in a separate thread from the 3D rendering thread, in my opinion.
But i still wanted to use LUA for prefab scripting and all the other neat stuff Leadwerks.
Here is what i did to make this work:
I installed tolua++ on my development machine with
sudo apt-get install libtolua++5.1-dev
I build a class named ShotListener.h
#pragma once
#include "App.h"
#include "Leadwe