Batch #14947 by ragnarok-clanker: no function's compiled code changes; checked with 596 compiled unit(s), including every includer of Source/Client/Input/Language.h, Source/Client/Input/LanguageTC.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/EquipWindowLook.h, Source/Client/Session.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/GraffiSkill.h, Source/Contents/Actors/GrannyGameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/Camera/Camera.h, Source/Contents/Effects/EffectEmitter.h, Source/Contents/Effects/EffectPrimitiveState.h, Source/Contents/FlyingShipRouteInfo.h, Source/Contents/Ground/GroundGeometry.h, Source/Contents/Ground/GroundSpatial.h, Source/Contents/Items/ItemInfo.h, Source/Render/SpriteQuad.h, Source/Resource/EZeffectResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Models/ModelMesh.h, Source/Resource/World/WorldResource.h, Source/UI/Dialogs/UIChooseWnd.h, Source/UI/Items/UISpellListWnd.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/MiniPartyGrid.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/Text/UIAchWnd.h, Source/UI/Window/UIMonsterInfoWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UITalkboxTrapInputWnd.h, Source/UI/Window/UIWindowMgr.h.
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 unknown04C1;
|
|
/* 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, unknown04C1) == 0x4C1);
|
|
static_assert(sizeof(CLanguageTC) == 0x4C4);
|
|
#endif
|
|
|
|
#endif
|