mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 19:22:30 +00:00
Compare commits
No commits in common. "5013c920cef9db4637bef4bb57a180e8feecf9a3" and "6c5c560dc785153a550d535da3e9fcbae576617b" have entirely different histories.
5013c920ce
...
6c5c560dc7
14 changed files with 38 additions and 3043 deletions
|
|
@ -16,14 +16,13 @@
|
|||
#include "util/SFile.hpp"
|
||||
|
||||
|
||||
bool CGGameUI::m_reloadUI = 0;
|
||||
CSimpleTop* CGGameUI::m_simpleTop = nullptr;
|
||||
CSimpleFrame* CGGameUI::m_UISimpleParent = nullptr;
|
||||
int32_t CGGameUI::m_reloadUIRequested = 0;
|
||||
int32_t CGGameUI::m_hasControl = 0;
|
||||
int32_t CGGameUI::m_screenWidth = 0;
|
||||
int32_t CGGameUI::m_screenHeight = 0;
|
||||
float CGGameUI::m_aspect = 0.0;
|
||||
char* CGGameUI::m_luaTainted = nullptr;
|
||||
|
||||
|
||||
void CGGameUI::InitializeGame() {
|
||||
|
|
@ -40,7 +39,7 @@ void CGGameUI::Initialize() {
|
|||
// s_scriptProfileCVar =
|
||||
|
||||
//CGGameUI::s_loggingIn = 1;
|
||||
CGGameUI::m_reloadUIRequested = 0;
|
||||
//CGGameUI::m_reloadUIRequested = 0;
|
||||
//CGGameUI::m_repopTime = 0;
|
||||
//CGGameUI::m_deadNoRepopTimer = 0;
|
||||
//CGGameUI::m_corpseReclaimDelay = 0;
|
||||
|
|
@ -188,14 +187,6 @@ void CGGameUI::RegisterFrameFactories() {
|
|||
//FrameXML_RegisterFactory("QuestPOIFrame", (int)sub_514260, 0);
|
||||
}
|
||||
|
||||
void CGGameUI::Reload() {
|
||||
if (CGGameUI::m_luaTainted && CGGameUI::m_simpleTop /* && !CGGameUI__m_simpleTop->dword1250 */) {
|
||||
// TODO: CGGameUI::ShowBlockedActionFeedback
|
||||
} else {
|
||||
CGGameUI::m_reloadUIRequested = 1;
|
||||
}
|
||||
}
|
||||
|
||||
int32_t CGGameUI::HandleDisplaySizeChanged(const CSizeEvent& event) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,18 +11,16 @@ class CGGameUI {
|
|||
static void InitializeGame();
|
||||
static void Initialize();
|
||||
static void RegisterFrameFactories();
|
||||
static void Reload();
|
||||
static int32_t HandleDisplaySizeChanged(const CSizeEvent& event);
|
||||
|
||||
public:
|
||||
static bool m_reloadUI;
|
||||
static CSimpleTop* m_simpleTop;
|
||||
static CSimpleFrame* m_UISimpleParent;
|
||||
static int32_t m_reloadUIRequested;
|
||||
static int32_t m_hasControl;
|
||||
static int32_t m_screenWidth;
|
||||
static int32_t m_screenHeight;
|
||||
static float m_aspect;
|
||||
static char* m_luaTainted;
|
||||
};
|
||||
|
||||
#endif // GAME_UI_CGGAMEUI_HPP
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -6,23 +6,15 @@
|
|||
|
||||
struct lua_State;
|
||||
|
||||
#define NUM_SCRIPT_FUNCTIONS_GAME 310
|
||||
#define NUM_SCRIPT_FUNCTIONS_CAMERA 22
|
||||
#define NUM_SCRIPT_FUNCTIONS_SCRIPT_EVENTS 169
|
||||
#define NUM_SCRIPT_FUNCTIONS_CHAT 89
|
||||
|
||||
namespace GameScript {
|
||||
extern FrameScript_Method s_ScriptFunctions_Game[NUM_SCRIPT_FUNCTIONS_GAME];
|
||||
extern FrameScript_Method s_ScriptFunctions_Camera[NUM_SCRIPT_FUNCTIONS_CAMERA];
|
||||
extern FrameScript_Method s_ScriptFunctions_ScriptEvents[NUM_SCRIPT_FUNCTIONS_SCRIPT_EVENTS];
|
||||
extern FrameScript_Method s_ScriptFunctions_Chat[NUM_SCRIPT_FUNCTIONS_CHAT];
|
||||
}
|
||||
}
|
||||
|
||||
// Utility
|
||||
|
||||
void LoadScriptFunctions();
|
||||
void CameraRegisterScriptFunctions();
|
||||
void ScriptEventsRegisterFunctions();
|
||||
void ChatRegisterScriptFunctions();
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -93,14 +93,6 @@ int32_t Script_VehicleCameraZoomOut(lua_State* L) {
|
|||
}
|
||||
|
||||
|
||||
void CameraRegisterScriptFunctions() {
|
||||
for (int32_t i = 0; i < NUM_SCRIPT_FUNCTIONS_CAMERA; ++i) {
|
||||
FrameScript_RegisterFunction(
|
||||
GameScript::s_ScriptFunctions_Camera[i].name,
|
||||
GameScript::s_ScriptFunctions_Camera[i].method);
|
||||
}
|
||||
}
|
||||
|
||||
FrameScript_Method GameScript::s_ScriptFunctions_Camera[NUM_SCRIPT_FUNCTIONS_CAMERA] = {
|
||||
{ "CameraZoomIn", &Script_CameraZoomIn },
|
||||
{ "CameraZoomOut", &Script_CameraZoomOut },
|
||||
|
|
|
|||
|
|
@ -1,477 +0,0 @@
|
|||
#include "gameui/GameScriptFunctions.hpp"
|
||||
#include "ui/FrameScript.hpp"
|
||||
#include "util/Lua.hpp"
|
||||
#include "util/Unimplemented.hpp"
|
||||
|
||||
|
||||
static int32_t Script_SendChatMessage(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SendAddonMessage(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SendSystemMessage(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetNumLanguages(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetLanguageByIndex(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetDefaultLanguage(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_DoEmote(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_LoggingChat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_LoggingCombat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_JoinChannelByName(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_JoinTemporaryChannel(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_JoinPermanentChannel(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_LeaveChannelByName(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ListChannelByName(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ListChannels(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChannelList(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChannelPassword(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChannelOwner(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_DisplayChannelOwner(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChannelName(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelModerator(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelUnmoderator(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelMute(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelUnmute(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelInvite(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelKick(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelBan(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelUnban(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelToggleAnnouncements(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelSilenceVoice(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelSilenceAll(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelUnSilenceVoice(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelUnSilenceAll(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChangeChatColor(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ResetChatColors(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChatTypeIndex(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChatWindowInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChatWindowSavedPosition(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChatWindowSavedDimensions(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChatWindowMessages(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChatWindowChannels(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_AddChatWindowMessages(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_RemoveChatWindowMessages(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_AddChatWindowChannel(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_RemoveChatWindowChannel(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowName(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowSize(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowColor(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowAlpha(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowLocked(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowDocked(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowUninteractable(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowShown(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowSavedPosition(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatWindowSavedDimensions(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_EnumerateServerChannels(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_RequestRaidInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetNumSavedInstances(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetSavedInstanceInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetSavedInstanceExtend(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ResetChatWindows(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_CanComplainChat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ComplainChat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetNumDisplayChannels(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChannelDisplayInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetSelectedDisplayChannel(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetSelectedDisplayChannel(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetChannelRosterInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetNumChannelMembers(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetActiveVoiceChannel(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetActiveVoiceChannel(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_CollapseChannelHeader(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ExpandChannelHeader(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelVoiceOn(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ChannelVoiceOff(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_DisplayChannelVoiceOn(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_DisplayChannelVoiceOff(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsDisplayChannelOwner(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsDisplayChannelModerator(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsVoiceChatEnabled(lua_State* L) {
|
||||
/*
|
||||
v1 = s_cvarEnableVoiceChat && s_cvarEnableVoiceChat->m_intValue;
|
||||
v2 = ComSatClient_IsComsatDisabledByClient();
|
||||
if ( CGChat::m_voiceChatSystemStatus && v1 && !v2 )
|
||||
{
|
||||
lua_pushnumber(a1, 1.0);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lua_pushnil(a1);
|
||||
return 1;
|
||||
}
|
||||
*/
|
||||
|
||||
lua_pushnil(L);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int32_t Script_IsVoiceChatAllowed(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsVoiceChatAllowedByServer(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsSilenced(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetMuteStatus(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsSilenced(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChannelWatch(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ClearChannelWatch(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_DeclineInvite(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetChatColorNameByClass(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
void ChatRegisterScriptFunctions() {
|
||||
for (int32_t i = 0; i < NUM_SCRIPT_FUNCTIONS_CHAT; ++i) {
|
||||
FrameScript_RegisterFunction(
|
||||
GameScript::s_ScriptFunctions_Chat[i].name,
|
||||
GameScript::s_ScriptFunctions_Chat[i].method);
|
||||
}
|
||||
}
|
||||
|
||||
FrameScript_Method GameScript::s_ScriptFunctions_Chat[NUM_SCRIPT_FUNCTIONS_CHAT] = {
|
||||
{ "SendChatMessage", &Script_SendChatMessage },
|
||||
{ "SendAddonMessage", &Script_SendAddonMessage },
|
||||
{ "SendSystemMessage", &Script_SendSystemMessage },
|
||||
{ "GetNumLanguages", &Script_GetNumLanguages },
|
||||
{ "GetLanguageByIndex", &Script_GetLanguageByIndex },
|
||||
{ "GetDefaultLanguage", &Script_GetDefaultLanguage },
|
||||
{ "DoEmote", &Script_DoEmote },
|
||||
{ "LoggingChat", &Script_LoggingChat },
|
||||
{ "LoggingCombat", &Script_LoggingCombat },
|
||||
{ "JoinChannelByName", &Script_JoinChannelByName },
|
||||
{ "JoinTemporaryChannel", &Script_JoinTemporaryChannel },
|
||||
{ "JoinPermanentChannel", &Script_JoinPermanentChannel },
|
||||
{ "LeaveChannelByName", &Script_LeaveChannelByName },
|
||||
{ "ListChannelByName", &Script_ListChannelByName },
|
||||
{ "ListChannels", &Script_ListChannels },
|
||||
{ "GetChannelList", &Script_GetChannelList },
|
||||
{ "SetChannelPassword", &Script_SetChannelPassword },
|
||||
{ "SetChannelOwner", &Script_SetChannelOwner },
|
||||
{ "DisplayChannelOwner", &Script_DisplayChannelOwner },
|
||||
{ "GetChannelName", &Script_GetChannelName },
|
||||
{ "ChannelModerator", &Script_ChannelModerator },
|
||||
{ "ChannelUnmoderator", &Script_ChannelUnmoderator },
|
||||
{ "ChannelMute", &Script_ChannelMute },
|
||||
{ "ChannelUnmute", &Script_ChannelUnmute },
|
||||
{ "ChannelInvite", &Script_ChannelInvite },
|
||||
{ "ChannelKick", &Script_ChannelKick },
|
||||
{ "ChannelBan", &Script_ChannelBan },
|
||||
{ "ChannelUnban", &Script_ChannelUnban },
|
||||
{ "ChannelToggleAnnouncements", &Script_ChannelToggleAnnouncements },
|
||||
{ "ChannelSilenceVoice", &Script_ChannelSilenceVoice },
|
||||
{ "ChannelSilenceAll", &Script_ChannelSilenceAll },
|
||||
{ "ChannelUnSilenceVoice", &Script_ChannelUnSilenceVoice },
|
||||
{ "ChannelUnSilenceAll", &Script_ChannelUnSilenceAll },
|
||||
{ "ChangeChatColor", &Script_ChangeChatColor },
|
||||
{ "ResetChatColors", &Script_ResetChatColors },
|
||||
{ "GetChatTypeIndex", &Script_GetChatTypeIndex },
|
||||
{ "GetChatWindowInfo", &Script_GetChatWindowInfo },
|
||||
{ "GetChatWindowSavedPosition", &Script_GetChatWindowSavedPosition },
|
||||
{ "GetChatWindowSavedDimensions", &Script_GetChatWindowSavedDimensions },
|
||||
{ "GetChatWindowMessages", &Script_GetChatWindowMessages },
|
||||
{ "GetChatWindowChannels", &Script_GetChatWindowChannels },
|
||||
{ "AddChatWindowMessages", &Script_AddChatWindowMessages },
|
||||
{ "RemoveChatWindowMessages", &Script_RemoveChatWindowMessages },
|
||||
{ "AddChatWindowChannel", &Script_AddChatWindowChannel },
|
||||
{ "RemoveChatWindowChannel", &Script_RemoveChatWindowChannel },
|
||||
{ "SetChatWindowName", &Script_SetChatWindowName },
|
||||
{ "SetChatWindowSize", &Script_SetChatWindowSize },
|
||||
{ "SetChatWindowColor", &Script_SetChatWindowColor },
|
||||
{ "SetChatWindowAlpha", &Script_SetChatWindowAlpha },
|
||||
{ "SetChatWindowLocked", &Script_SetChatWindowLocked },
|
||||
{ "SetChatWindowDocked", &Script_SetChatWindowDocked },
|
||||
{ "SetChatWindowUninteractable", &Script_SetChatWindowUninteractable },
|
||||
{ "SetChatWindowShown", &Script_SetChatWindowShown },
|
||||
{ "SetChatWindowSavedPosition", &Script_SetChatWindowSavedPosition },
|
||||
{ "SetChatWindowSavedDimensions", &Script_SetChatWindowSavedDimensions },
|
||||
{ "EnumerateServerChannels", &Script_EnumerateServerChannels },
|
||||
{ "RequestRaidInfo", &Script_RequestRaidInfo },
|
||||
{ "GetNumSavedInstances", &Script_GetNumSavedInstances },
|
||||
{ "GetSavedInstanceInfo", &Script_GetSavedInstanceInfo },
|
||||
{ "SetSavedInstanceExtend", &Script_SetSavedInstanceExtend },
|
||||
{ "ResetChatWindows", &Script_ResetChatWindows },
|
||||
{ "CanComplainChat", &Script_CanComplainChat },
|
||||
{ "ComplainChat", &Script_ComplainChat },
|
||||
{ "GetNumDisplayChannels", &Script_GetNumDisplayChannels },
|
||||
{ "GetChannelDisplayInfo", &Script_GetChannelDisplayInfo },
|
||||
{ "GetSelectedDisplayChannel", &Script_GetSelectedDisplayChannel },
|
||||
{ "SetSelectedDisplayChannel", &Script_SetSelectedDisplayChannel },
|
||||
{ "GetChannelRosterInfo", &Script_GetChannelRosterInfo },
|
||||
{ "GetNumChannelMembers", &Script_GetNumChannelMembers },
|
||||
{ "SetActiveVoiceChannel", &Script_SetActiveVoiceChannel },
|
||||
{ "GetActiveVoiceChannel", &Script_GetActiveVoiceChannel },
|
||||
{ "CollapseChannelHeader", &Script_CollapseChannelHeader },
|
||||
{ "ExpandChannelHeader", &Script_ExpandChannelHeader },
|
||||
{ "ChannelVoiceOn", &Script_ChannelVoiceOn },
|
||||
{ "ChannelVoiceOff", &Script_ChannelVoiceOff },
|
||||
{ "DisplayChannelVoiceOn", &Script_DisplayChannelVoiceOn },
|
||||
{ "DisplayChannelVoiceOff", &Script_DisplayChannelVoiceOff },
|
||||
{ "IsDisplayChannelOwner", &Script_IsDisplayChannelOwner },
|
||||
{ "IsDisplayChannelModerator", &Script_IsDisplayChannelModerator },
|
||||
{ "IsVoiceChatEnabled", &Script_IsVoiceChatEnabled },
|
||||
{ "IsVoiceChatAllowed", &Script_IsVoiceChatAllowed },
|
||||
{ "IsVoiceChatAllowedByServer", &Script_IsVoiceChatAllowedByServer },
|
||||
{ "IsSilenced", &Script_IsSilenced },
|
||||
{ "GetMuteStatus", &Script_GetMuteStatus },
|
||||
{ "UnitIsSilenced", &Script_UnitIsSilenced },
|
||||
{ "SetChannelWatch", &Script_SetChannelWatch },
|
||||
{ "ClearChannelWatch", &Script_ClearChannelWatch },
|
||||
{ "DeclineInvite", &Script_DeclineInvite },
|
||||
{ "SetChatColorNameByClass", &Script_SetChatColorNameByClass },
|
||||
};
|
||||
|
|
@ -1,861 +0,0 @@
|
|||
#include "gameui/GameScriptFunctions.hpp"
|
||||
#include "ui/FrameScript.hpp"
|
||||
#include "util/Lua.hpp"
|
||||
#include "util/Unimplemented.hpp"
|
||||
|
||||
static int32_t Script_UnitExists(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsVisible(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsUnit(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsPlayer(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsInMyGuild(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsCorpse(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsPartyLeader(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitGroupRolesAssigned(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsRaidOfficer(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitInParty(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitPlayerOrPetInParty(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitInRaid(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitPlayerOrPetInRaid(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitPlayerControlled(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsAFK(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsDND(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsPVP(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsPVPSanctuary(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsPVPFreeForAll(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitFactionGroup(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitReaction(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsEnemy(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsFriend(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitCanCooperate(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitCanAssist(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitCanAttack(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsCharmed(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsPossessed(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_PlayerCanTeleport(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitClassification(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitSelectionColor(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitGUID(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitName(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitPVPName(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitXP(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitXPMax(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitHealth(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitHealthMax(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitMana(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitManaMax(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitPower(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitPowerMax(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitPowerType(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitOnTaxi(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsFeignDeath(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsDead(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsGhost(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsDeadOrGhost(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsConnected(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitAffectingCombat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitSex(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitLevel(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetMoney(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetHonorCurrency(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetArenaCurrency(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitRace(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitClass(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitClassBase(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitResistance(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitStat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitAttackBothHands(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitDamage(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitRangedDamage(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitRangedAttack(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitAttackSpeed(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitAttackPower(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitRangedAttackPower(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitDefense(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitArmor(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitCharacterPoints(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitBuff(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitDebuff(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitAura(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsTapped(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsTappedByPlayer(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsTappedByAllThreatList(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsTrivial(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitHasRelicSlot(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_SetPortraitTexture(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_HasFullControl(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetComboPoints(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsInGuild(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsGuildLeader(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsArenaTeamCaptain(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsInArenaTeam(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsResting(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetCombatRating(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetCombatRatingBonus(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetMaxCombatRatingBonus(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetDodgeChance(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetBlockChance(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetShieldBlock(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetParryChance(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetCritChanceFromAgility(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetSpellCritChanceFromIntellect(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetCritChance(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetRangedCritChance(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetSpellCritChance(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetSpellBonusDamage(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetSpellBonusHealing(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetPetSpellBonusDamage(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetSpellPenetration(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetArmorPenetration(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetAttackPowerForStat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitCreatureType(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitCreatureFamily(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetResSicknessDuration(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetPVPSessionStats(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetPVPYesterdayStats(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetPVPLifetimeStats(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitPVPRank(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetPVPRankInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetPVPRankProgress(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitCastingInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitChannelInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsLoggedIn(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsFlyableArea(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsIndoors(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsOutdoors(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsOutOfBounds(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsFalling(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsSwimming(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsFlying(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsMounted(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsStealthed(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsSameServer(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetUnitHealthModifier(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetUnitMaxHealthModifier(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetUnitPowerModifier(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetUnitHealthRegenRateFromSpirit(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetUnitManaRegenRateFromSpirit(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetManaRegen(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetPowerRegen(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetRuneCooldown(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetRuneCount(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetRuneType(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_ReportPlayerIsPVPAFK(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_PlayerIsPVPInactive(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetExpertise(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetExpertisePercent(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitInBattleground(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitInRange(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetUnitSpeed(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetUnitPitch(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitInVehicle(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitUsingVehicle(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitControllingVehicle(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitInVehicleControlSeat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitHasVehicleUI(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitTargetsVehicleInRaidUI(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitVehicleSkin(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitVehicleSeatCount(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitVehicleSeatInfo(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitSwitchToVehicleSeat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_CanSwitchVehicleSeat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetVehicleUIIndicator(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetVehicleUIIndicatorSeat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitThreatSituation(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitDetailedThreatSituation(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_UnitIsControlling(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_EjectPassengerFromSeat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_CanEjectPassengerFromSeat(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_RespondInstanceLock(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetPlayerFacing(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetPlayerInfoByGUID(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetItemStats(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_GetItemStatDelta(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_IsXPUserDisabled(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
static int32_t Script_FillLocalizedClassList(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
}
|
||||
|
||||
|
||||
void ScriptEventsRegisterFunctions() {
|
||||
for (int32_t i = 0; i < NUM_SCRIPT_FUNCTIONS_SCRIPT_EVENTS; ++i) {
|
||||
FrameScript_RegisterFunction(
|
||||
GameScript::s_ScriptFunctions_ScriptEvents[i].name,
|
||||
GameScript::s_ScriptFunctions_ScriptEvents[i].method);
|
||||
}
|
||||
}
|
||||
|
||||
FrameScript_Method GameScript::s_ScriptFunctions_ScriptEvents[NUM_SCRIPT_FUNCTIONS_SCRIPT_EVENTS] = {
|
||||
{ "UnitExists", &Script_UnitExists },
|
||||
{ "UnitIsVisible", &Script_UnitIsVisible },
|
||||
{ "UnitIsUnit", &Script_UnitIsUnit },
|
||||
{ "UnitIsPlayer", &Script_UnitIsPlayer },
|
||||
{ "UnitIsInMyGuild", &Script_UnitIsInMyGuild },
|
||||
{ "UnitIsCorpse", &Script_UnitIsCorpse },
|
||||
{ "UnitIsPartyLeader", &Script_UnitIsPartyLeader },
|
||||
{ "UnitGroupRolesAssigned", &Script_UnitGroupRolesAssigned },
|
||||
{ "UnitIsRaidOfficer", &Script_UnitIsRaidOfficer },
|
||||
{ "UnitInParty", &Script_UnitInParty },
|
||||
{ "UnitPlayerOrPetInParty", &Script_UnitPlayerOrPetInParty },
|
||||
{ "UnitInRaid", &Script_UnitInRaid },
|
||||
{ "UnitPlayerOrPetInRaid", &Script_UnitPlayerOrPetInRaid },
|
||||
{ "UnitPlayerControlled", &Script_UnitPlayerControlled },
|
||||
{ "UnitIsAFK", &Script_UnitIsAFK },
|
||||
{ "UnitIsDND", &Script_UnitIsDND },
|
||||
{ "UnitIsPVP", &Script_UnitIsPVP },
|
||||
{ "UnitIsPVPSanctuary", &Script_UnitIsPVPSanctuary },
|
||||
{ "UnitIsPVPFreeForAll", &Script_UnitIsPVPFreeForAll },
|
||||
{ "UnitFactionGroup", &Script_UnitFactionGroup },
|
||||
{ "UnitReaction", &Script_UnitReaction },
|
||||
{ "UnitIsEnemy", &Script_UnitIsEnemy },
|
||||
{ "UnitIsFriend", &Script_UnitIsFriend },
|
||||
{ "UnitCanCooperate", &Script_UnitCanCooperate },
|
||||
{ "UnitCanAssist", &Script_UnitCanAssist },
|
||||
{ "UnitCanAttack", &Script_UnitCanAttack },
|
||||
{ "UnitIsCharmed", &Script_UnitIsCharmed },
|
||||
{ "UnitIsPossessed", &Script_UnitIsPossessed },
|
||||
{ "PlayerCanTeleport", &Script_PlayerCanTeleport },
|
||||
{ "UnitClassification", &Script_UnitClassification },
|
||||
{ "UnitSelectionColor", &Script_UnitSelectionColor },
|
||||
{ "UnitGUID", &Script_UnitGUID },
|
||||
{ "UnitName", &Script_UnitName },
|
||||
{ "UnitPVPName", &Script_UnitPVPName },
|
||||
{ "UnitXP", &Script_UnitXP },
|
||||
{ "UnitXPMax", &Script_UnitXPMax },
|
||||
{ "UnitHealth", &Script_UnitHealth },
|
||||
{ "UnitHealthMax", &Script_UnitHealthMax },
|
||||
{ "UnitMana", &Script_UnitMana },
|
||||
{ "UnitManaMax", &Script_UnitManaMax },
|
||||
{ "UnitPower", &Script_UnitPower },
|
||||
{ "UnitPowerMax", &Script_UnitPowerMax },
|
||||
{ "UnitPowerType", &Script_UnitPowerType },
|
||||
{ "UnitOnTaxi", &Script_UnitOnTaxi },
|
||||
{ "UnitIsFeignDeath", &Script_UnitIsFeignDeath },
|
||||
{ "UnitIsDead", &Script_UnitIsDead },
|
||||
{ "UnitIsGhost", &Script_UnitIsGhost },
|
||||
{ "UnitIsDeadOrGhost", &Script_UnitIsDeadOrGhost },
|
||||
{ "UnitIsConnected", &Script_UnitIsConnected },
|
||||
{ "UnitAffectingCombat", &Script_UnitAffectingCombat },
|
||||
{ "UnitSex", &Script_UnitSex },
|
||||
{ "UnitLevel", &Script_UnitLevel },
|
||||
{ "GetMoney", &Script_GetMoney },
|
||||
{ "GetHonorCurrency", &Script_GetHonorCurrency },
|
||||
{ "GetArenaCurrency", &Script_GetArenaCurrency },
|
||||
{ "UnitRace", &Script_UnitRace },
|
||||
{ "UnitClass", &Script_UnitClass },
|
||||
{ "UnitClassBase", &Script_UnitClassBase },
|
||||
{ "UnitResistance", &Script_UnitResistance },
|
||||
{ "UnitStat", &Script_UnitStat },
|
||||
{ "UnitAttackBothHands", &Script_UnitAttackBothHands },
|
||||
{ "UnitDamage", &Script_UnitDamage },
|
||||
{ "UnitRangedDamage", &Script_UnitRangedDamage },
|
||||
{ "UnitRangedAttack", &Script_UnitRangedAttack },
|
||||
{ "UnitAttackSpeed", &Script_UnitAttackSpeed },
|
||||
{ "UnitAttackPower", &Script_UnitAttackPower },
|
||||
{ "UnitRangedAttackPower", &Script_UnitRangedAttackPower },
|
||||
{ "UnitDefense", &Script_UnitDefense },
|
||||
{ "UnitArmor", &Script_UnitArmor },
|
||||
{ "UnitCharacterPoints", &Script_UnitCharacterPoints },
|
||||
{ "UnitBuff", &Script_UnitBuff },
|
||||
{ "UnitDebuff", &Script_UnitDebuff },
|
||||
{ "UnitAura", &Script_UnitAura },
|
||||
{ "UnitIsTapped", &Script_UnitIsTapped },
|
||||
{ "UnitIsTappedByPlayer", &Script_UnitIsTappedByPlayer },
|
||||
{ "UnitIsTappedByAllThreatList", &Script_UnitIsTappedByAllThreatList },
|
||||
{ "UnitIsTrivial", &Script_UnitIsTrivial },
|
||||
{ "UnitHasRelicSlot", &Script_UnitHasRelicSlot },
|
||||
{ "SetPortraitTexture", &Script_SetPortraitTexture },
|
||||
{ "HasFullControl", &Script_HasFullControl },
|
||||
{ "GetComboPoints", &Script_GetComboPoints },
|
||||
{ "IsInGuild", &Script_IsInGuild },
|
||||
{ "IsGuildLeader", &Script_IsGuildLeader },
|
||||
{ "IsArenaTeamCaptain", &Script_IsArenaTeamCaptain },
|
||||
{ "IsInArenaTeam", &Script_IsInArenaTeam },
|
||||
{ "IsResting", &Script_IsResting },
|
||||
{ "GetCombatRating", &Script_GetCombatRating },
|
||||
{ "GetCombatRatingBonus", &Script_GetCombatRatingBonus },
|
||||
{ "GetMaxCombatRatingBonus", &Script_GetMaxCombatRatingBonus },
|
||||
{ "GetDodgeChance", &Script_GetDodgeChance },
|
||||
{ "GetBlockChance", &Script_GetBlockChance },
|
||||
{ "GetShieldBlock", &Script_GetShieldBlock },
|
||||
{ "GetParryChance", &Script_GetParryChance },
|
||||
{ "GetCritChanceFromAgility", &Script_GetCritChanceFromAgility },
|
||||
{ "GetSpellCritChanceFromIntellect", &Script_GetSpellCritChanceFromIntellect },
|
||||
{ "GetCritChance", &Script_GetCritChance },
|
||||
{ "GetRangedCritChance", &Script_GetRangedCritChance },
|
||||
{ "GetSpellCritChance", &Script_GetSpellCritChance },
|
||||
{ "GetSpellBonusDamage", &Script_GetSpellBonusDamage },
|
||||
{ "GetSpellBonusHealing", &Script_GetSpellBonusHealing },
|
||||
{ "GetPetSpellBonusDamage", &Script_GetPetSpellBonusDamage },
|
||||
{ "GetSpellPenetration", &Script_GetSpellPenetration },
|
||||
{ "GetArmorPenetration", &Script_GetArmorPenetration },
|
||||
{ "GetAttackPowerForStat", &Script_GetAttackPowerForStat },
|
||||
{ "UnitCreatureType", &Script_UnitCreatureType },
|
||||
{ "UnitCreatureFamily", &Script_UnitCreatureFamily },
|
||||
{ "GetResSicknessDuration", &Script_GetResSicknessDuration },
|
||||
{ "GetPVPSessionStats", &Script_GetPVPSessionStats },
|
||||
{ "GetPVPYesterdayStats", &Script_GetPVPYesterdayStats },
|
||||
{ "GetPVPLifetimeStats", &Script_GetPVPLifetimeStats },
|
||||
{ "UnitPVPRank", &Script_UnitPVPRank },
|
||||
{ "GetPVPRankInfo", &Script_GetPVPRankInfo },
|
||||
{ "GetPVPRankProgress", &Script_GetPVPRankProgress },
|
||||
{ "UnitCastingInfo", &Script_UnitCastingInfo },
|
||||
{ "UnitChannelInfo", &Script_UnitChannelInfo },
|
||||
{ "IsLoggedIn", &Script_IsLoggedIn },
|
||||
{ "IsFlyableArea", &Script_IsFlyableArea },
|
||||
{ "IsIndoors", &Script_IsIndoors },
|
||||
{ "IsOutdoors", &Script_IsOutdoors },
|
||||
{ "IsOutOfBounds", &Script_IsOutOfBounds },
|
||||
{ "IsFalling", &Script_IsFalling },
|
||||
{ "IsSwimming", &Script_IsSwimming },
|
||||
{ "IsFlying", &Script_IsFlying },
|
||||
{ "IsMounted", &Script_IsMounted },
|
||||
{ "IsStealthed", &Script_IsStealthed },
|
||||
{ "UnitIsSameServer", &Script_UnitIsSameServer },
|
||||
{ "GetUnitHealthModifier", &Script_GetUnitHealthModifier },
|
||||
{ "GetUnitMaxHealthModifier", &Script_GetUnitMaxHealthModifier },
|
||||
{ "GetUnitPowerModifier", &Script_GetUnitPowerModifier },
|
||||
{ "GetUnitHealthRegenRateFromSpirit", &Script_GetUnitHealthRegenRateFromSpirit },
|
||||
{ "GetUnitManaRegenRateFromSpirit", &Script_GetUnitManaRegenRateFromSpirit },
|
||||
{ "GetManaRegen", &Script_GetManaRegen },
|
||||
{ "GetPowerRegen", &Script_GetPowerRegen },
|
||||
{ "GetRuneCooldown", &Script_GetRuneCooldown },
|
||||
{ "GetRuneCount", &Script_GetRuneCount },
|
||||
{ "GetRuneType", &Script_GetRuneType },
|
||||
{ "ReportPlayerIsPVPAFK", &Script_ReportPlayerIsPVPAFK },
|
||||
{ "PlayerIsPVPInactive", &Script_PlayerIsPVPInactive },
|
||||
{ "GetExpertise", &Script_GetExpertise },
|
||||
{ "GetExpertisePercent", &Script_GetExpertisePercent },
|
||||
{ "UnitInBattleground", &Script_UnitInBattleground },
|
||||
{ "UnitInRange", &Script_UnitInRange },
|
||||
{ "GetUnitSpeed", &Script_GetUnitSpeed },
|
||||
{ "GetUnitPitch", &Script_GetUnitPitch },
|
||||
{ "UnitInVehicle", &Script_UnitInVehicle },
|
||||
{ "UnitUsingVehicle", &Script_UnitUsingVehicle },
|
||||
{ "UnitControllingVehicle", &Script_UnitControllingVehicle },
|
||||
{ "UnitInVehicleControlSeat", &Script_UnitInVehicleControlSeat },
|
||||
{ "UnitHasVehicleUI", &Script_UnitHasVehicleUI },
|
||||
{ "UnitTargetsVehicleInRaidUI", &Script_UnitTargetsVehicleInRaidUI },
|
||||
{ "UnitVehicleSkin", &Script_UnitVehicleSkin },
|
||||
{ "UnitVehicleSeatCount", &Script_UnitVehicleSeatCount },
|
||||
{ "UnitVehicleSeatInfo", &Script_UnitVehicleSeatInfo },
|
||||
{ "UnitSwitchToVehicleSeat", &Script_UnitSwitchToVehicleSeat },
|
||||
{ "CanSwitchVehicleSeat", &Script_CanSwitchVehicleSeat },
|
||||
{ "GetVehicleUIIndicator", &Script_GetVehicleUIIndicator },
|
||||
{ "GetVehicleUIIndicatorSeat", &Script_GetVehicleUIIndicatorSeat },
|
||||
{ "UnitThreatSituation", &Script_UnitThreatSituation },
|
||||
{ "UnitDetailedThreatSituation", &Script_UnitDetailedThreatSituation },
|
||||
{ "UnitIsControlling", &Script_UnitIsControlling },
|
||||
{ "EjectPassengerFromSeat", &Script_EjectPassengerFromSeat },
|
||||
{ "CanEjectPassengerFromSeat", &Script_CanEjectPassengerFromSeat },
|
||||
{ "RespondInstanceLock", &Script_RespondInstanceLock },
|
||||
{ "GetPlayerFacing", &Script_GetPlayerFacing },
|
||||
{ "GetPlayerInfoByGUID", &Script_GetPlayerInfoByGUID },
|
||||
{ "GetItemStats", &Script_GetItemStats },
|
||||
{ "GetItemStatDelta", &Script_GetItemStatDelta },
|
||||
{ "IsXPUserDisabled", &Script_IsXPUserDisabled },
|
||||
{ "FillLocalizedClassList", &Script_FillLocalizedClassList }
|
||||
};
|
||||
|
|
@ -6,7 +6,6 @@
|
|||
#include "util/CStatus.hpp"
|
||||
#include "util/Lua.hpp"
|
||||
#include "util/SFile.hpp"
|
||||
#include "os/Debug.hpp"
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <common/Time.hpp>
|
||||
|
|
@ -157,12 +156,7 @@ void FrameScript_CreateEvents(const char* names[], uint32_t count) {
|
|||
}
|
||||
|
||||
void FrameScript_Destroy() {
|
||||
lua_close(FrameScript::s_context);
|
||||
FrameScript::s_context = nullptr;
|
||||
luaM_freePool(FrameScript::s_mempool);
|
||||
FrameScript::s_mempool = nullptr;
|
||||
FrameScript::s_scriptEventsHash.Clear();
|
||||
FrameScript::s_scriptEvents.Clear();
|
||||
// TODO
|
||||
}
|
||||
|
||||
void FrameScript_Execute(const char* source, const char* filename, const char* a3) {
|
||||
|
|
@ -761,9 +755,9 @@ int32_t FrameScript_HandleError(lua_State* L) {
|
|||
// TODO
|
||||
// Remove temporary console debug logging
|
||||
if (v2 && objName) {
|
||||
OsOutputDebugString("Error: %s%s\n", objName, v2 + 1);
|
||||
printf("Error: %s%s\n", objName, v2 + 1);
|
||||
} else {
|
||||
OsOutputDebugString("Error: %s\n", v1);
|
||||
printf("Error: %s\n", v1);
|
||||
}
|
||||
|
||||
if (v2 && objName) {
|
||||
|
|
|
|||
|
|
@ -272,10 +272,9 @@ int32_t FrameXML_CreateFrames(const char* tocPath, const char* a2, MD5_CTX* md5,
|
|||
tocData = tocData + 3;
|
||||
}
|
||||
|
||||
CStatus frameStatus;
|
||||
CStatus v21;
|
||||
char tocLine[1024];
|
||||
char tocEntryPath[260];
|
||||
int32_t v25 = 0;
|
||||
|
||||
do {
|
||||
SStrTokenize(&tocData, tocLine, 1024, "\r\n", 0);
|
||||
|
|
@ -308,7 +307,7 @@ int32_t FrameXML_CreateFrames(const char* tocPath, const char* a2, MD5_CTX* md5,
|
|||
|
||||
*v12 = 0;
|
||||
|
||||
FrameXML_ProcessFile(tocEntryPath, a2, md5, &frameStatus);
|
||||
FrameXML_ProcessFile(tocEntryPath, a2, md5, &v21);
|
||||
|
||||
// TODO
|
||||
// if (s_progressCallback && s_progressFiles < s_progressTotal) {
|
||||
|
|
@ -325,11 +324,13 @@ int32_t FrameXML_CreateFrames(const char* tocPath, const char* a2, MD5_CTX* md5,
|
|||
|
||||
SFile::Unload(tocBuffer);
|
||||
|
||||
if (FrameXML::s_debugLevel > 0 || v25 > 0) {
|
||||
frameStatus.Prepend(STATUS_INFO, "** Loading table of contents %s", v5);
|
||||
}
|
||||
// TODO
|
||||
// if (s_debugLevel > 0 || v25 > 0) {
|
||||
// v21.Prepend(STATUS_INFO, "** Loading table of contents %s", v5);
|
||||
// }
|
||||
|
||||
status->Add(frameStatus);
|
||||
// TODO
|
||||
// status->Add(v21);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -416,7 +417,7 @@ int32_t FrameXML_ProcessFile(const char* filePath, const char* a2, MD5_CTX* md5,
|
|||
return 0;
|
||||
}
|
||||
|
||||
CStatus fileStatus;
|
||||
CStatus unkStatus;
|
||||
|
||||
XMLNode* node = XMLTree_GetRoot(tree)->m_child;
|
||||
|
||||
|
|
@ -427,8 +428,6 @@ int32_t FrameXML_ProcessFile(const char* filePath, const char* a2, MD5_CTX* md5,
|
|||
// Should come from some kind of Lua headers
|
||||
const char* lua_tainted = nullptr;
|
||||
|
||||
int32_t v34 = 0;
|
||||
|
||||
while (node) {
|
||||
// <Include>
|
||||
if (!SStrCmpI(node->GetName(), "Include", 0x7FFFFFFFu)) {
|
||||
|
|
@ -449,9 +448,9 @@ int32_t FrameXML_ProcessFile(const char* filePath, const char* a2, MD5_CTX* md5,
|
|||
SStrCopy(v27, v14, 260);
|
||||
}
|
||||
|
||||
FrameXML_ProcessFile(v27, a2, md5, &fileStatus);
|
||||
FrameXML_ProcessFile(v27, a2, md5, &unkStatus);
|
||||
} else {
|
||||
fileStatus.Add(STATUS_ERROR, "Element 'Include' without file attribute");
|
||||
unkStatus.Add(STATUS_ERROR, "Element 'Include' without file attribute");
|
||||
}
|
||||
// <Script>
|
||||
} else if (!SStrCmpI(node->GetName(), "Script", 0x7FFFFFFFu)) {
|
||||
|
|
@ -474,7 +473,7 @@ int32_t FrameXML_ProcessFile(const char* filePath, const char* a2, MD5_CTX* md5,
|
|||
SStrCopy(v27, v16, 260);
|
||||
}
|
||||
|
||||
FrameScript_ExecuteFile(v27, a2, md5, &fileStatus);
|
||||
FrameScript_ExecuteFile(v27, a2, md5, &unkStatus);
|
||||
}
|
||||
|
||||
char* v19 = node->m_body;
|
||||
|
|
@ -491,22 +490,22 @@ int32_t FrameXML_ProcessFile(const char* filePath, const char* a2, MD5_CTX* md5,
|
|||
CSimpleFont* font = CSimpleFont::GetFont(fontName, 1);
|
||||
font->LoadXML(node, status);
|
||||
} else {
|
||||
fileStatus.Add(STATUS_WARNING, "Unnamed font node at top level");
|
||||
unkStatus.Add(STATUS_WARNING, "Unnamed font node at top level");
|
||||
}
|
||||
// Everything else (frame nodes)
|
||||
} else {
|
||||
const char* v22 = node->GetAttributeByName("virtual");
|
||||
|
||||
if (!v22 || SStrCmpI(v22, "true", 0x7FFFFFFFu)) {
|
||||
FrameXML_CreateFrame(node, nullptr, &fileStatus);
|
||||
FrameXML_CreateFrame(node, nullptr, &unkStatus);
|
||||
CLayoutFrame::ResizePending();
|
||||
} else {
|
||||
const char* v23 = node->GetAttributeByName("name");
|
||||
|
||||
if (v23 && *v23) {
|
||||
FrameXML_StoreHashNode(node, v23, lua_tainted, &fileStatus);
|
||||
FrameXML_StoreHashNode(node, v23, lua_tainted, &unkStatus);
|
||||
} else {
|
||||
fileStatus.Add(STATUS_WARNING, "Unnamed virtual node at top level");
|
||||
unkStatus.Add(STATUS_WARNING, "Unnamed virtual node at top level");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -516,11 +515,13 @@ int32_t FrameXML_ProcessFile(const char* filePath, const char* a2, MD5_CTX* md5,
|
|||
|
||||
XMLTree_Free(tree);
|
||||
|
||||
if (FrameXML::s_debugLevel > 0 || v34 > 0) {
|
||||
fileStatus.Prepend(STATUS_INFO, "++ Loading file %s", v5);
|
||||
}
|
||||
// TODO
|
||||
// if (s_debugLevel > 0 || v34 > 0) {
|
||||
// unkStatus.Prepend(STATUS_INFO, "++ Loading file %s", v5);
|
||||
// }
|
||||
|
||||
status->Add(fileStatus);
|
||||
// TODO
|
||||
// status->Unk8(unkStatus);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -612,11 +613,3 @@ int32_t FrameXML_GuessNumFiles(const char* data) {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
int32_t FrameXML_GetDebugLevel() {
|
||||
return FrameXML::s_debugLevel;
|
||||
}
|
||||
|
||||
void FrameXML_SetDebugLevel(int32_t level) {
|
||||
FrameXML::s_debugLevel = level;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,8 +54,4 @@ void FrameXML_StoreHashNode(XMLNode* node, const char* name, const char* a3, CSt
|
|||
|
||||
int32_t FrameXML_GuessNumFiles(const char* data);
|
||||
|
||||
int32_t FrameXML_GetDebugLevel();
|
||||
|
||||
void FrameXML_SetDebugLevel(int32_t level);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -30,25 +30,6 @@ void* luaM_initPool() {
|
|||
return pools;
|
||||
}
|
||||
|
||||
void luaM_freePool(void* ptr) {
|
||||
if (!ptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
MemPool** pools = reinterpret_cast<MemPool**>(ptr);
|
||||
|
||||
for (uint32_t i = 0; i < 9; ++i) {
|
||||
MemPool* pool = pools[i];
|
||||
if (pool) {
|
||||
// Is the sub_8556E0(pool) a desturctor?
|
||||
pool->~MemPool();
|
||||
SMemFree(pool, __FILE__, __LINE__, 0);
|
||||
}
|
||||
}
|
||||
|
||||
SMemFree(pools, __FILE__, __LINE__, 0);
|
||||
}
|
||||
|
||||
void* luaM_reallocPool(void* ud, void* ptr, size_t osize, size_t nsize) {
|
||||
void* result; // eax
|
||||
signed int v5; // esi
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
#include <cstdlib>
|
||||
|
||||
void* luaM_initPool();
|
||||
void luaM_freePool(void* ptr);
|
||||
void* luaM_reallocPool(void* ud, void* ptr, size_t osize, size_t nsize);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -24,16 +24,6 @@ void CStatus::Add(STATUS_TYPE severity, const char* format, ...) {
|
|||
va_end(args);
|
||||
}
|
||||
|
||||
void CStatus::Prepend(STATUS_TYPE severity, const char* format, ...) {
|
||||
// TODO
|
||||
// Remove temporary console debug logging
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
vprintf(format, args);
|
||||
printf("\n");
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
CStatus& GetGlobalStatusObj() {
|
||||
return CStatus::s_errorList;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ class CStatus {
|
|||
// Member functions
|
||||
void Add(const CStatus&);
|
||||
void Add(STATUS_TYPE, const char*, ...);
|
||||
void Prepend(STATUS_TYPE, const char*, ...);
|
||||
|
||||
public:
|
||||
STORM_EXPLICIT_LIST(CStatus::STATUSENTRY, link) statusList;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue