Leviathan  0.8.0.0
Leviathan game engine
ScriptArgumentsProvider.cpp
Go to the documentation of this file.
1 #include "Include.h"
2 // ------------------------------------ //
3 #ifndef LEVIATHAN_SCRIPTARGUMENTSPROVIDER
5 #endif
6 #include "ScriptModule.h"
7 using namespace Leviathan;
8 // ------------------------------------ //
10  _ArgumentBridge->LeaveProvider();
11  _ArgumentBridge.reset();
12 }
13 
15  _ArgumentBridge = std::shared_ptr<ScriptArgumentsProviderBridge>(new ScriptArgumentsProviderBridge());
16 
17  _ArgumentBridge->SetProvider(this);
18  _ArgumentBridge->SetModule(module);
19 
20  module->OnAddedToBridge(_ArgumentBridge);
21 }
DLLEXPORT void _BondWithModule(ScriptModule *module)
Forms a connection between a ScriptModule and a ScriptArgumentsProvider which either can disconnect.
DLLEXPORT bool OnAddedToBridge(std::shared_ptr< ScriptArgumentsProviderBridge > bridge)
Call when this module is added to a bridge.
#define DLLEXPORT
Definition: Include.h:84
The access mask controls which registered functions and classes a script sees.
Definition: GameModule.h:12