mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-02-04 09:09:09 +00:00
feat(net): add RealmConnection::HandleCharEnum implementation
This commit is contained in:
parent
ba21fb2994
commit
1e8dc7aef9
10 changed files with 171 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue