forked from Mirrorlandia_minetest/minetest
Don't permit to copy Scripting classes (Client,Server,Mainmenu)
This commit is contained in:
parent
1ef9eee311
commit
b82e5ec880
@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "cpp_api/s_base.h"
|
||||
#include "cpp_api/s_client.h"
|
||||
#include "cpp_api/s_security.h"
|
||||
#include "util/basic_macros.h"
|
||||
|
||||
class Client;
|
||||
class LocalPlayer;
|
||||
@ -38,5 +39,6 @@ public:
|
||||
|
||||
private:
|
||||
virtual void InitializeModApi(lua_State *L, int top);
|
||||
DISABLE_CLASS_COPY(ClientScripting);
|
||||
};
|
||||
#endif
|
||||
|
@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "cpp_api/s_base.h"
|
||||
#include "cpp_api/s_mainmenu.h"
|
||||
#include "cpp_api/s_async.h"
|
||||
#include "util/basic_macros.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Scripting <-> Main Menu Interface */
|
||||
@ -45,6 +46,7 @@ private:
|
||||
void initializeModApi(lua_State *L, int top);
|
||||
|
||||
AsyncEngine asyncEngine;
|
||||
DISABLE_CLASS_COPY(MainMenuScripting);
|
||||
};
|
||||
|
||||
|
||||
|
@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "cpp_api/s_player.h"
|
||||
#include "cpp_api/s_server.h"
|
||||
#include "cpp_api/s_security.h"
|
||||
#include "util/basic_macros.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Scripting <-> Server Game Interface */
|
||||
@ -50,6 +51,7 @@ public:
|
||||
|
||||
private:
|
||||
void InitializeModApi(lua_State *L, int top);
|
||||
DISABLE_CLASS_COPY(ServerScripting);
|
||||
};
|
||||
|
||||
void log_deprecated(const std::string &message);
|
||||
|
Loading…
Reference in New Issue
Block a user