Batch #2125 by ragnarok-clanker: 3 byte-identical, 0 confirmed by peer review. - fn_21267 CSession::Text8104: byte-identical - fn_21268 CSession::Text80EC: byte-identical - fn_17813 MonsterJobColor: byte-identical Merged automatically: every function is byte-identical to the original. Adds to the build: Source/Client/Mode/GameModeNames.cpp
62 lines
2.3 KiB
C++
62 lines
2.3 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 <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 */ unsigned char unknown_0194[0x18];
|
|
/* 01AC */ std::map<std::uint32_t, std::uint32_t> unknown_01AC;
|
|
/* 01B4 */ unsigned char unknown_01B4[0x100];
|
|
/* 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 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();
|
|
bool AppendGuildEmblem(std::vector<char>& output, std::vector<std::string>& names, int guildId, int unused);
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(offsetof(CGameMode, mapName) == 0x68);
|
|
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, drag) == 0x308);
|
|
static_assert(sizeof(CGameMode) == 0x670);
|
|
#endif
|
|
|
|
#endif
|