Skip to content
Permalink
Browse files

Don't permit to copy Scripting classes (Client,Server,Mainmenu)

  • Loading branch information
nerzhul committed Apr 27, 2017
1 parent 1ef9eee commit b82e5ec8804e9058b48f3d2a168a4c019a777055
Showing with 6 additions and 0 deletions.
  1. +2 −0 src/script/scripting_client.h
  2. +2 −0 src/script/scripting_mainmenu.h
  3. +2 −0 src/script/scripting_server.h
@@ -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 @@ class ClientScripting:

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 @@ class MainMenuScripting
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 @@ class ServerScripting:

private:
void InitializeModApi(lua_State *L, int top);
DISABLE_CLASS_COPY(ServerScripting);
};

void log_deprecated(const std::string &message);

0 comments on commit b82e5ec

Please sign in to comment.