mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-05 15:42:17 +03:00
feat(object): partially implement CGPlayer_C::PostInitActivePlayer
This commit is contained in:
parent
5b88141acb
commit
7dcc33bcb4
@ -1,7 +1,9 @@
|
|||||||
#include "object/client/CGPlayer_C.hpp"
|
#include "object/client/CGPlayer_C.hpp"
|
||||||
#include "db/Db.hpp"
|
#include "db/Db.hpp"
|
||||||
#include "object/client/ObjMgr.hpp"
|
|
||||||
#include "object/Types.hpp"
|
#include "object/Types.hpp"
|
||||||
|
#include "object/client/ObjMgr.hpp"
|
||||||
|
#include "ui/FrameScript.hpp"
|
||||||
|
#include "ui/Game.hpp"
|
||||||
#include <storm/Error.hpp>
|
#include <storm/Error.hpp>
|
||||||
|
|
||||||
CGPlayer_C::CGPlayer_C(uint32_t time, CClientObjCreate& objCreate) : CGUnit_C(time, objCreate) {
|
CGPlayer_C::CGPlayer_C(uint32_t time, CClientObjCreate& objCreate) : CGUnit_C(time, objCreate) {
|
||||||
@ -46,6 +48,22 @@ void CGPlayer_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4)
|
|||||||
|
|
||||||
void CGPlayer_C::PostInitActivePlayer() {
|
void CGPlayer_C::PostInitActivePlayer() {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
if (ClntObjMgrGetPlayerType() == PLAYER_NORMAL) {
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
FrameScript_SignalEvent(SCRIPT_ACTIONBAR_SLOT_CHANGED, "%d", 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
if (ClntObjMgrGetPlayerType() == PLAYER_NORMAL) {
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
CGGameUI::EnterWorld();
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) {
|
||||||
|
|||||||
@ -1057,7 +1057,7 @@ void ScriptEventsInitialize() {
|
|||||||
g_scriptEvents[173] = "ACTIONBAR_SHOWGRID";
|
g_scriptEvents[173] = "ACTIONBAR_SHOWGRID";
|
||||||
g_scriptEvents[174] = "ACTIONBAR_HIDEGRID";
|
g_scriptEvents[174] = "ACTIONBAR_HIDEGRID";
|
||||||
g_scriptEvents[175] = "ACTIONBAR_PAGE_CHANGED";
|
g_scriptEvents[175] = "ACTIONBAR_PAGE_CHANGED";
|
||||||
g_scriptEvents[176] = "ACTIONBAR_SLOT_CHANGED";
|
g_scriptEvents[SCRIPT_ACTIONBAR_SLOT_CHANGED] = "ACTIONBAR_SLOT_CHANGED";
|
||||||
g_scriptEvents[177] = "ACTIONBAR_UPDATE_STATE";
|
g_scriptEvents[177] = "ACTIONBAR_UPDATE_STATE";
|
||||||
g_scriptEvents[178] = "ACTIONBAR_UPDATE_USABLE";
|
g_scriptEvents[178] = "ACTIONBAR_UPDATE_USABLE";
|
||||||
g_scriptEvents[179] = "ACTIONBAR_UPDATE_COOLDOWN";
|
g_scriptEvents[179] = "ACTIONBAR_UPDATE_COOLDOWN";
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
#define UI_GAME_TYPES_HPP
|
#define UI_GAME_TYPES_HPP
|
||||||
|
|
||||||
enum SCRIPTEVENT {
|
enum SCRIPTEVENT {
|
||||||
|
// TODO
|
||||||
|
SCRIPT_ACTIONBAR_SLOT_CHANGED = 176,
|
||||||
// TODO
|
// TODO
|
||||||
SCRIPT_PLAYER_LOGIN = 253,
|
SCRIPT_PLAYER_LOGIN = 253,
|
||||||
SCRIPT_PLAYER_LOGOUT = 254,
|
SCRIPT_PLAYER_LOGOUT = 254,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user