diff --git a/src/core.hpp b/src/core.hpp index 02a63db..f44013d 100644 --- a/src/core.hpp +++ b/src/core.hpp @@ -5,6 +5,7 @@ namespace luasteam { +// Adds functions SteamAPI_* void add_core(lua_State *L); } // namespace luasteam diff --git a/src/friends.hpp b/src/friends.hpp index f41edc9..836f692 100644 --- a/src/friends.hpp +++ b/src/friends.hpp @@ -5,6 +5,7 @@ namespace luasteam { +// Adds functions from ISteamFriends void add_friends(lua_State *L); void init_friends(lua_State *L); diff --git a/src/main.cpp b/src/main.cpp index 42c047c..12493b6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,12 +3,8 @@ #include "friends.hpp" #include "user_stats.hpp" -// ==================================== -// ======= End of API functions ======= -// ==================================== - +// Creates and returns a table with all functions EXTERN int luaopen_luasteam(lua_State *L) { - luasteam::init_common(L); lua_createtable(L, 0, 5); luasteam::add_core(L); luasteam::add_user_stats(L); diff --git a/src/user_stats.hpp b/src/user_stats.hpp index d4cf1f7..e252c67 100644 --- a/src/user_stats.hpp +++ b/src/user_stats.hpp @@ -5,6 +5,7 @@ namespace luasteam { +// Adds functions from ISteamUserStats void add_user_stats(lua_State *L); void init_user_stats(lua_State *L);