feat(net): add RealmConnection::HandleCharEnum implementation

This commit is contained in:
VDm 2025-03-29 23:37:24 +04:00
parent ba21fb2994
commit 1e8dc7aef9
10 changed files with 171 additions and 10 deletions

View file

@ -74,11 +74,19 @@ int32_t Script_UpdateSelectionCustomizationScene(lua_State* L) {
}
int32_t Script_GetCharacterSelectFacing(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
// Radian to Degree
lua_pushnumber(L, CCharacterSelection::s_charFacing * 57.29578f);
return 1;
}
int32_t Script_SetCharacterSelectFacing(lua_State* L) {
WHOA_UNIMPLEMENTED(0);
if (!lua_isnumber(L, 1)) {
luaL_error(L, "Usage: SetCharacterSelectFacing(degrees)");
}
// Degree to Radian
float facing = lua_tonumber(L, 1) * 0.017453292;
CCharacterSelection::SetCharFacing(facing);
return 1;
}
int32_t Script_GetSelectBackgroundModel(lua_State* L) {