Leviathan  0.8.0.0
Leviathan game engine
ScriptScript.cpp
Go to the documentation of this file.
1 // ------------------------------------ //
2 #include "ScriptScript.h"
3 
4 #include "ScriptModule.h"
5 using namespace Leviathan;
6 using namespace std;
7 // ------------------------------------ //
8 DLLEXPORT Leviathan::ScriptScript::ScriptScript(const int &MID, weak_ptr<ScriptModule> wptr) :
9  ScriptsModule(wptr), ModuleID(MID)
10 {
11 
12 }
13 
15  // copy over //
16  ModuleID = other.ModuleID;
17  ScriptsModule = other.ScriptsModule;
18 }
19 
20 DLLEXPORT Leviathan::ScriptScript::ScriptScript(weak_ptr<ScriptModule> wptr) :
21  ScriptsModule(wptr), ModuleID(wptr.lock()->GetID())
22 {
23 
24 }
25 
27 
28 }
29 // ------------------------------------ //
30 
31 
#define DLLEXPORT
Definition: Include.h:84
The access mask controls which registered functions and classes a script sees.
Definition: GameModule.h:12
DLLEXPORT ScriptScript(std::weak_ptr< ScriptModule > wptr)