mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(gameui): add game camera script methods
This commit is contained in:
parent
35e44e0976
commit
5be5ba35b9
10 changed files with 226 additions and 11 deletions
17
src/gameui/GameScriptFunctions.cpp
Normal file
17
src/gameui/GameScriptFunctions.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "gameui/GameScriptFunctions.hpp"
|
||||
#include "ui/FrameScript.hpp"
|
||||
#include "ui/ScriptFunctions.hpp"
|
||||
|
||||
void LoadScriptFunctions() {
|
||||
RegisterSimpleFrameScriptMethods();
|
||||
// TODO
|
||||
CameraRegisterScriptFunctions();
|
||||
}
|
||||
|
||||
void CameraRegisterScriptFunctions() {
|
||||
for (int32_t i = 0; i < NUM_SCRIPT_FUNCTIONS_CAMERA; ++i) {
|
||||
FrameScript_RegisterFunction(
|
||||
GameScript::s_ScriptFunctions_Camera[i].name,
|
||||
GameScript::s_ScriptFunctions_Camera[i].method);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue