diff --git a/src/ui/game/CGGameUI.cpp b/src/ui/game/CGGameUI.cpp index 08e40c7..a33db78 100644 --- a/src/ui/game/CGGameUI.cpp +++ b/src/ui/game/CGGameUI.cpp @@ -19,6 +19,7 @@ #include "ui/game/CharacterInfoScript.hpp" #include "ui/game/GMTicketInfoScript.hpp" #include "ui/game/GameScript.hpp" +#include "ui/game/PartyInfoScript.hpp" #include "ui/game/ScriptEvents.hpp" #include "ui/game/TradeInfoScript.hpp" #include "ui/game/Types.hpp" @@ -56,6 +57,7 @@ void LoadScriptFunctions() { // TODO ActionBarRegisterScriptFunctions(); + PartyInfoRegisterScriptFunctions(); // TODO diff --git a/src/ui/game/PartyInfoScript.cpp b/src/ui/game/PartyInfoScript.cpp new file mode 100644 index 0000000..0ea14ae --- /dev/null +++ b/src/ui/game/PartyInfoScript.cpp @@ -0,0 +1,127 @@ +#include "ui/game/PartyInfoScript.hpp" +#include "ui/FrameScript.hpp" +#include "util/Lua.hpp" +#include "util/Unimplemented.hpp" + +namespace { + +int32_t Script_GetNumPartyMembers(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_GetRealNumPartyMembers(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_GetPartyMember(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_GetPartyLeaderIndex(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_IsPartyLeader(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_IsRealPartyLeader(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_LeaveParty(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_GetLootMethod(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_SetLootMethod(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_GetLootThreshold(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_SetLootThreshold(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_SetPartyAssignment(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_ClearPartyAssignment(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_GetPartyAssignment(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_SilenceMember(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_UnSilenceMember(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_SetOptOutOfLoot(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_GetOptOutOfLoot(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_CanChangePlayerDifficulty(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_ChangePlayerDifficulty(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_IsPartyLFG(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +int32_t Script_HasLFGRestrictions(lua_State* L) { + WHOA_UNIMPLEMENTED(0); +} + +} + +static FrameScript_Method s_ScriptFunctions[] = { + { "GetNumPartyMembers", &Script_GetNumPartyMembers }, + { "GetRealNumPartyMembers", &Script_GetRealNumPartyMembers }, + { "GetPartyMember", &Script_GetPartyMember }, + { "GetPartyLeaderIndex", &Script_GetPartyLeaderIndex }, + { "IsPartyLeader", &Script_IsPartyLeader }, + { "IsRealPartyLeader", &Script_IsRealPartyLeader }, + { "LeaveParty", &Script_LeaveParty }, + { "GetLootMethod", &Script_GetLootMethod }, + { "SetLootMethod", &Script_SetLootMethod }, + { "GetLootThreshold", &Script_GetLootThreshold }, + { "SetLootThreshold", &Script_SetLootThreshold }, + { "SetPartyAssignment", &Script_SetPartyAssignment }, + { "ClearPartyAssignment", &Script_ClearPartyAssignment }, + { "GetPartyAssignment", &Script_GetPartyAssignment }, + { "SilenceMember", &Script_SilenceMember }, + { "UnSilenceMember", &Script_UnSilenceMember }, + { "SetOptOutOfLoot", &Script_SetOptOutOfLoot }, + { "GetOptOutOfLoot", &Script_GetOptOutOfLoot }, + { "CanChangePlayerDifficulty", &Script_CanChangePlayerDifficulty }, + { "ChangePlayerDifficulty", &Script_ChangePlayerDifficulty }, + { "IsPartyLFG", &Script_IsPartyLFG }, + { "HasLFGRestrictions", &Script_HasLFGRestrictions }, +}; + +void PartyInfoRegisterScriptFunctions() { + for (auto& func : s_ScriptFunctions) { + FrameScript_RegisterFunction(func.name, func.method); + } +} diff --git a/src/ui/game/PartyInfoScript.hpp b/src/ui/game/PartyInfoScript.hpp new file mode 100644 index 0000000..99ad273 --- /dev/null +++ b/src/ui/game/PartyInfoScript.hpp @@ -0,0 +1,6 @@ +#ifndef UI_GAME_PARTY_INFO_SCRIPT_HPP +#define UI_GAME_PARTY_INFO_SCRIPT_HPP + +void PartyInfoRegisterScriptFunctions(); + +#endif