Batch #15141 by ragnarok-clanker: no function's compiled code changes; checked with 537 compiled unit(s), including every includer of Source/Client/Input/LanguageTC.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Replay.h, Source/Client/Session.h, Source/Contents/AchievementMgr.h, Source/Contents/Actors/CharacterRender.h, Source/Contents/Actors/EffectActors.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/EnchantMgr.h, Source/Contents/GuildInfo.h, Source/Contents/Messenger/MessengerWindows.h, Source/Contents/Schedule/TimeScheduler.h, Source/Contents/Sound/SoundMgr.h, Source/Contents/SpriteLayerDrawing.h, Source/Contents/TableMng.h, Source/Contents/World/SkyBox.h, Source/UI/Chat/UINewChatWnd.h, Source/UI/Text/CreateLineInfo.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/Window/UINewSelectCharWnd.h, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIReplayRECControlWnd.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/UIWindowMgr.inl.
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
#ifndef RAGNAROK_SOURCE_CLIENT_INPUT_LANGUAGETC_H
|
|
#define RAGNAROK_SOURCE_CLIENT_INPUT_LANGUAGETC_H
|
|
|
|
#include "Client/Input/Language.h"
|
|
|
|
#include <array>
|
|
#include <cstdint>
|
|
#include <list>
|
|
#include <string>
|
|
|
|
struct TraditionalKeyMapping {
|
|
/* 0000 */ std::uint8_t category;
|
|
/* 0001 */ std::uint8_t bytes[3];
|
|
};
|
|
|
|
// VTABLE: vt_01605
|
|
struct CLanguageTC : CLanguageBase {
|
|
/* 00B8 */ std::list<std::uint8_t> keys;
|
|
/* 00C0 */ std::array<TraditionalKeyMapping, 256> mappings;
|
|
/* 04C0 */ unsigned char keyStrokeEnabled;
|
|
/* 04C1 */ std::uint8_t keyStroke;
|
|
/* 04C2 */ unsigned char unknown_04C2[2];
|
|
|
|
CLanguageTC();
|
|
~CLanguageTC() override;
|
|
const char* DisplayText() const override;
|
|
int DisplayLength() const override;
|
|
void ProcessKey(unsigned virtualKey) override;
|
|
void RefreshComposition() override;
|
|
void EndComposition() override;
|
|
void ResetCandidate() override;
|
|
|
|
int GetKeyStrokeSize() const;
|
|
};
|
|
|
|
static_assert(sizeof(TraditionalKeyMapping) == 4);
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(offsetof(CLanguageTC, keys) == 0xB8);
|
|
static_assert(offsetof(CLanguageTC, mappings) == 0xC0);
|
|
static_assert(offsetof(CLanguageTC, keyStroke) == 0x4C1);
|
|
static_assert(sizeof(CLanguageTC) == 0x4C4);
|
|
#endif
|
|
|
|
#endif
|