Go to the source code of this file.
#define IMPLEMENT_BOOLEAN_SCRIPT_SETTING |
( |
|
NAME | ) |
|
Value:bool JSI_GameView::Get##NAME##Enabled(
void*
UNUSED(cbdata)) \
{ \
LOGERROR(L
"Trying to get a setting from GameView when it's not initialized!"); \
return false; \
} \
} \
\
void JSI_GameView::Set##NAME##Enabled(
void*
UNUSED(cbdata),
bool Enabled) \
{ \
LOGERROR(L
"Trying to set a setting of GameView when it's not initialized!"); \
return; \
}
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
CGame * g_Game
Globally accessible pointer to the CGame object.
CGameView * GetView()
Get the pointer to the game view object.
Definition at line 26 of file JSInterface_GameView.cpp.
#define REGISTER_BOOLEAN_SCRIPT_SETTING |
( |
|
NAME | ) |
|
Value:scriptInterface.RegisterFunction<bool, &JSI_GameView::Get##NAME##Enabled>("GameView_Get" #NAME "Enabled"); \
scriptInterface.RegisterFunction<void, bool, &JSI_GameView::Set##NAME##Enabled>("GameView_Set" #NAME "Enabled");
Definition at line 54 of file JSInterface_GameView.cpp.
IMPLEMENT_BOOLEAN_SCRIPT_SETTING |
( |
Culling |
| ) |
|
IMPLEMENT_BOOLEAN_SCRIPT_SETTING |
( |
LockCullCamera |
| ) |
|
IMPLEMENT_BOOLEAN_SCRIPT_SETTING |
( |
ConstrainCamera |
| ) |
|