mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: animation track as asset (WIP)
This commit is contained in:
parent
df5bc1f9fe
commit
104c74e653
10 changed files with 86 additions and 24 deletions
|
|
@ -844,6 +844,21 @@ void scripting::load_layout_script(
|
|||
lua::pop(L);
|
||||
}
|
||||
|
||||
void scripting::load_vca_animation(
|
||||
const io::path& file,
|
||||
const std::string& identifier
|
||||
) {
|
||||
auto L = lua::get_main_state();
|
||||
if (lua::get_from_registry(L, "internals", "load_vca_animation", true)) {
|
||||
lua::pushlstring(L, file.string());
|
||||
lua::pushlstring(L, identifier);
|
||||
if (lua::call(L, 2, 0)) {
|
||||
lua::pop(L);
|
||||
}
|
||||
lua::pop(L);
|
||||
}
|
||||
}
|
||||
|
||||
void scripting::close() {
|
||||
lua::finalize();
|
||||
content = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue