mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(client): add account name CVar (#117)
This commit is contained in:
parent
5857a66810
commit
cb35132807
@ -21,6 +21,7 @@
|
|||||||
#include <common/Prop.hpp>
|
#include <common/Prop.hpp>
|
||||||
#include <storm/Error.hpp>
|
#include <storm/Error.hpp>
|
||||||
|
|
||||||
|
CVar* Client::g_accountNameVar;
|
||||||
CVar* Client::g_accountListVar;
|
CVar* Client::g_accountListVar;
|
||||||
HEVENTCONTEXT Client::g_clientEventContext;
|
HEVENTCONTEXT Client::g_clientEventContext;
|
||||||
|
|
||||||
@ -63,6 +64,18 @@ void ClientInitializeGame(uint32_t mapId, C3Vector position) {
|
|||||||
void ClientMiscInitialize() {
|
void ClientMiscInitialize() {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
Client::g_accountNameVar = CVar::Register(
|
||||||
|
"accountName",
|
||||||
|
"Saved account name",
|
||||||
|
0x40,
|
||||||
|
"",
|
||||||
|
nullptr,
|
||||||
|
GAME,
|
||||||
|
false,
|
||||||
|
nullptr,
|
||||||
|
false
|
||||||
|
);
|
||||||
|
|
||||||
Client::g_accountListVar = CVar::Register(
|
Client::g_accountListVar = CVar::Register(
|
||||||
"accountList",
|
"accountList",
|
||||||
"List of wow accounts for saved Blizzard account",
|
"List of wow accounts for saved Blizzard account",
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
class CVar;
|
class CVar;
|
||||||
|
|
||||||
namespace Client {
|
namespace Client {
|
||||||
|
extern CVar* g_accountNameVar;
|
||||||
extern CVar* g_accountListVar;
|
extern CVar* g_accountListVar;
|
||||||
extern HEVENTCONTEXT g_clientEventContext;
|
extern HEVENTCONTEXT g_clientEventContext;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user