mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
rename entity:set_rig to entity:set_skeleton
This commit is contained in:
parent
6214bf4a19
commit
3b24982c0d
3 changed files with 5 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ static int l_despawn(lua::State* L) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int l_set_rig(lua::State* L) {
|
||||
static int l_set_skeleton(lua::State* L) {
|
||||
if (auto entity = get_entity(L, 1)) {
|
||||
std::string skeletonName = lua::require_string(L, 2);
|
||||
auto rigConfig = content->getRig(skeletonName);
|
||||
|
|
@ -48,6 +48,6 @@ const luaL_Reg entitylib [] = {
|
|||
{"exists", lua::wrap<l_exists>},
|
||||
{"spawn", lua::wrap<l_spawn>},
|
||||
{"despawn", lua::wrap<l_despawn>},
|
||||
{"set_rig", lua::wrap<l_set_rig>},
|
||||
{"set_skeleton", lua::wrap<l_set_skeleton>},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue