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_base.h"
|
||||||
#include "cpp_api/s_client.h"
|
#include "cpp_api/s_client.h"
|
||||||
#include "cpp_api/s_security.h"
|
#include "cpp_api/s_security.h"
|
||||||
|
#include "util/basic_macros.h"
|
||||||
|
|
||||||
class Client;
|
class Client;
|
||||||
class LocalPlayer;
|
class LocalPlayer;
|
||||||
@ -38,5 +39,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void InitializeModApi(lua_State *L, int top);
|
virtual void InitializeModApi(lua_State *L, int top);
|
||||||
|
DISABLE_CLASS_COPY(ClientScripting);
|
||||||
};
|
};
|
||||||
#endif
|
#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_base.h"
|
||||||
#include "cpp_api/s_mainmenu.h"
|
#include "cpp_api/s_mainmenu.h"
|
||||||
#include "cpp_api/s_async.h"
|
#include "cpp_api/s_async.h"
|
||||||
|
#include "util/basic_macros.h"
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Scripting <-> Main Menu Interface */
|
/* Scripting <-> Main Menu Interface */
|
||||||
@ -45,6 +46,7 @@ private:
|
|||||||
void initializeModApi(lua_State *L, int top);
|
void initializeModApi(lua_State *L, int top);
|
||||||
|
|
||||||
AsyncEngine asyncEngine;
|
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_player.h"
|
||||||
#include "cpp_api/s_server.h"
|
#include "cpp_api/s_server.h"
|
||||||
#include "cpp_api/s_security.h"
|
#include "cpp_api/s_security.h"
|
||||||
|
#include "util/basic_macros.h"
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Scripting <-> Server Game Interface */
|
/* Scripting <-> Server Game Interface */
|
||||||
@ -50,6 +51,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void InitializeModApi(lua_State *L, int top);
|
void InitializeModApi(lua_State *L, int top);
|
||||||
|
DISABLE_CLASS_COPY(ServerScripting);
|
||||||
};
|
};
|
||||||
|
|
||||||
void log_deprecated(const std::string &message);
|
void log_deprecated(const std::string &message);
|
||||||
|
Loading…
Reference in New Issue
Block a user