rodecomp/Source/Client/Mode/CGameMode.h
ragnarok-clanker 3c8696822f Decompile 6 functions in Source/Client/Mode/GameModeNotices.cpp, Source/Client/Mode/CGameMode.h, ...
Batch #3501 by Yommy: 0 byte-identical, 6 confirmed by peer review.

- fn_22088 CGameMode::ReceiveActorPairFreeze: logic confirmed by peer review
- fn_22097 CGameMode::ReceiveEffectRemove: logic confirmed by peer review
- fn_22108 CGameMode::ReceiveActorEffect347: logic confirmed by peer review
- fn_22109 CGameMode::ReceiveUnknown0294Text: logic confirmed by peer review
- fn_22112 CGameMode::PlaceWindow16: logic confirmed by peer review
- fn_22117 CGameMode::ReceiveUnknown7FBC: logic confirmed by peer review

Peer-reviewed-by: eAthena, youko
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-29 22:42:57 +00:00

92 lines
3.8 KiB
C++

#ifndef RAGNAROK_SOURCE_CLIENT_MODE_CGAMEMODE_H
#define RAGNAROK_SOURCE_CLIENT_MODE_CGAMEMODE_H
#include "Client/Mode/CMode.h"
#include "Client/Mode/ModeDragState.h"
#include "Contents/ActorNameCard.h"
#include <cstddef>
#include <cstdint>
#include <list>
#include <map>
#include <string>
#include <vector>
class CView;
class CCorpse;
struct ActorNameAllPacket;
struct CWorld;
class CGameMode : public CMode {
public:
/* 0058 */ unsigned char unknown_0058[0x10];
/* 0068 */ char mapName[16];
/* 0078 */ unsigned char unknown_0078[0x54];
/* 00CC */ CWorld* scene;
/* 00D0 */ CView* camera;
/* 00D4 */ unsigned char unknown_00D4[0x8C];
/* 0160 */ CActorNameCardHolder nameCard;
/* 0194 */ std::map<std::uint32_t, int> unknown_0194;
/* 019C */ unsigned char unknown_019C[0x8];
/* 01A4 */ std::list<int> unknown_01A4;
/* 01AC */ std::map<std::uint32_t, std::uint32_t> unknown_01AC;
/* 01B4 */ unsigned char unknown_01B4[0xE0];
/* 0294 */ char unknown_0294[0x20];
/* 02B4 */ UIWindow* itemWindow;
/* 02B8 */ unsigned char unknown_02B8[0x50];
/* 0308 */ ModeDragState drag;
/* 03C8 */ unsigned char unknown_03C8[0x2A8];
std::string MapName();
void WorldCell(float x, float z, int& column, int& row) const;
void SubcellPosition(int column, int row, int subColumn, int subRow, float& x, float& z) const;
void PlayerCell(int* column, int* row) const;
bool CanFindPath(int sx, int sy, int cellX, int cellY, int dx, int dy);
void ReceiveActorNameAll(const ActorNameAllPacket* packet);
void ReceiveColoredNotice(const unsigned char* packet);
void ReceiveActorText(const unsigned char* packet);
void ReceiveRentalItemTime(const unsigned char* packet);
void ReceiveActorSequenceDeadline(const unsigned char* packet);
void ReceiveActorSignal(const unsigned char* packet);
void IgnorePacket(const unsigned char* packet);
void ReceiveHuntingList(const unsigned char* packet);
bool NotifyItemResult(int result);
void NotifyItemBounds();
CCorpse* SpawnCorpse(float x, float y, float z, const char* action, const char* sprite, int animation, int motion, float angle);
std::uint32_t FindUnknown01AC(std::uint32_t key);
std::string ActorName(std::uint32_t id);
std::uint32_t ActorNameColor(int job, std::uint32_t aid);
const CActorNameCard& LookupNameCard(std::uint32_t id);
const char* DragItemName();
void PushUnknown01A4(int value);
bool IsOverWeight(bool notify);
void CompleteUnknown0194(std::uint32_t id, const std::string& text);
bool AppendGuildEmblem(std::vector<char>& output, std::vector<std::string>& names, int guildId, int unused);
void ReceiveResultNotice(int result);
void RefreshWindow16(const unsigned char* packet);
void ReceiveWindow154Close(std::int16_t value);
void MoveWindow16(int x, int y);
void ResizeWindow16(int width, int height);
void ReceiveNotice1950(const unsigned char* packet);
void ReceiveActorPairFreeze(const unsigned char* packet);
void ReceiveEffectRemove(const unsigned char* packet);
void ReceiveActorEffect347(const unsigned char* packet);
void ReceiveUnknown0294Text(const unsigned char* packet);
void PlaceWindow16(unsigned int xPercent, unsigned int yPercent);
void ReceiveUnknown7FBC(const unsigned char* packet);
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(CGameMode, mapName) == 0x68);
static_assert(offsetof(CGameMode, unknown_0194) == 0x194);
static_assert(offsetof(CGameMode, unknown_01A4) == 0x1A4);
static_assert(offsetof(CGameMode, unknown_01AC) == 0x1AC);
static_assert(offsetof(CGameMode, scene) == 0xCC);
static_assert(offsetof(CGameMode, camera) == 0xD0);
static_assert(offsetof(CGameMode, nameCard) == 0x160);
static_assert(offsetof(CGameMode, unknown_0294) == 0x294);
static_assert(offsetof(CGameMode, drag) == 0x308);
static_assert(sizeof(CGameMode) == 0x670);
#endif
#endif