Common functions for game development, mainly in C++, Lua