mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Minor script api fixes/cleanups
This commit is contained in:
parent
5b6bc8a12b
commit
524d446757
11 changed files with 37 additions and 36 deletions
|
@ -58,7 +58,7 @@ extern "C" {
|
|||
setOriginFromTableRaw(index, __FUNCTION__)
|
||||
|
||||
enum class ScriptingType: u8 {
|
||||
Async,
|
||||
Async, // either mainmenu (client) or ingame (server)
|
||||
Client,
|
||||
MainMenu,
|
||||
Server
|
||||
|
@ -100,9 +100,10 @@ public:
|
|||
void addObjectReference(ServerActiveObject *cobj);
|
||||
void removeObjectReference(ServerActiveObject *cobj);
|
||||
|
||||
ScriptingType getType() { return m_type; }
|
||||
|
||||
IGameDef *getGameDef() { return m_gamedef; }
|
||||
Server* getServer();
|
||||
ScriptingType getType() { return m_type; }
|
||||
#ifndef SERVER
|
||||
Client* getClient();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue