Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
luaregentities.hpp
Go to the documentation of this file.
1
12#ifndef MINESERVER_LUAREGENTITIES_H
13#define MINESERVER_LUAREGENTITIES_H
14
15#include <plugins/luaheaders.h>
16#include <entities/entity.h>
17#include <entities/player.h>
18
24void loadEntitiesLua(lua_State *state)
25{
26 const char *namespaceName = "entities";
27
28 IEntity::loadLua(state, namespaceName);
29 ILiving::loadLua(state, namespaceName);
30 Player::loadLua(state, namespaceName);
31}
32
33#endif // MINESERVER_LUAREGENTITIES_H
static void loadLua(lua_State *state, const char *namespaceName)
Loads the IEntity class to a Lua one.
Definition entity.h:67
static void loadLua(lua_State *state, const char *namespaceName)
Loads the ILiving class to a Lua one.
Definition entity.h:103
static void loadLua(lua_State *state, const char *namespaceName)
Loads the Player class to a Lua one.
Definition player.h:62
The file having entities logic.
Utility header file for lua things.
void loadEntitiesLua(lua_State *state)
Loads entities classes to lua.
Definition luaregentities.hpp:24
The file for handling player logic.