-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
214 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* @file luaregentities.hpp | ||
* @author Lygaen | ||
* @brief Utility for loading types lua classes | ||
* @version 0.1 | ||
* @date 2024-01-15 | ||
* | ||
* @copyright Copyright (c) 2024 | ||
* | ||
*/ | ||
|
||
#ifndef MINESERVER_LUAREGENTITIES_H | ||
#define MINESERVER_LUAREGENTITIES_H | ||
|
||
#include <plugins/luaheaders.h> | ||
#include <entities/entity.h> | ||
#include <entities/player.h> | ||
|
||
/** | ||
* @brief Loads entities classes to lua | ||
* | ||
* @param state the lua state to load to | ||
*/ | ||
void loadEntitiesLua(lua_State *state) | ||
{ | ||
const char *namespaceName = "entities"; | ||
|
||
IEntity::loadLua(state, namespaceName); | ||
ILiving::loadLua(state, namespaceName); | ||
Player::loadLua(state, namespaceName); | ||
} | ||
|
||
#endif // MINESERVER_LUAREGENTITIES_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* @file luaregplaypackets.hpp | ||
* @author Lygaen | ||
* @brief Utility for loading types lua classes | ||
* @version 0.1 | ||
* @date 2024-01-15 | ||
* | ||
* @copyright Copyright (c) 2024 | ||
* | ||
*/ | ||
|
||
#ifndef MINESERVER_LUAREGPLAYPACKETS_H | ||
#define MINESERVER_LUAREGPLAYPACKETS_H | ||
|
||
#include <plugins/luaheaders.h> | ||
#include <net/packets/play/disconnect.h> | ||
|
||
/** | ||
* @brief Loads entities classes to lua | ||
* | ||
* @param state the lua state to load to | ||
*/ | ||
void loadPlayPacketsLua(lua_State *state) | ||
{ | ||
const char *namespaceName = "packets"; | ||
|
||
DisconnectLogin::loadLua(state, namespaceName); | ||
DisconnectPlay::loadLua(state, namespaceName); | ||
} | ||
|
||
#endif // MINESERVER_LUAREGPLAYPACKETS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.