rodecomp/Source/Contents/FlyingShipRouteInfo.h
ragnarok-clanker 2251fe1bad Decompile 2 functions in Source/UI/Window/UIRoMapWnd.cpp, Source/UI/Window/UIRoMapWnd.h, ...
Batch #9318 by secret: 0 byte-identical, 2 confirmed by peer review.

- fn_12597 UIRoMapWnd::DrawWorld: logic confirmed by peer review
- fn_12623 CFlyingShipRouteInfo::UpdateRoute: logic confirmed by peer review

Peer-reviewed-by: gordaoprogramas, superintelligence, seumadruga
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-01 06:49:28 +00:00

68 lines
2.2 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_FLYINGSHIPROUTEINFO_H
#define RAGNAROK_SOURCE_CONTENTS_FLYINGSHIPROUTEINFO_H
#include <cstddef>
#include <string>
#include <vector>
class UIRoMapWnd;
struct WorldViewRecord;
struct FlyingShipRouteEntry {
/* 0000 */ std::string name;
/* 0018 */ int unknown_0018[4];
/* 0028 */ int unknown_0028;
/* 002C */ float unknown_002C[2];
/* 0034 */ float unknown_0034;
/* 0038 */ float unknown_0038;
FlyingShipRouteEntry() = default;
FlyingShipRouteEntry(const FlyingShipRouteEntry& other) = default;
FlyingShipRouteEntry(FlyingShipRouteEntry&& other) noexcept;
FlyingShipRouteEntry& operator=(const FlyingShipRouteEntry& other) = default;
FlyingShipRouteEntry& operator=(FlyingShipRouteEntry&& other) = default;
};
class CFlyingShipRouteInfo {
public:
CFlyingShipRouteInfo();
virtual ~CFlyingShipRouteInfo() = default;
bool IsRouteMap(std::string mapName);
void Draw(UIRoMapWnd* wnd);
void BuildRoute(const std::vector<std::string>& mapNames);
bool UpdateRoute(WorldViewRecord* record);
void Update(UIRoMapWnd* wnd, float elapsed);
/* 0004 */ std::vector<FlyingShipRouteEntry> entries;
/* 0010 */ int unknown_0010;
/* 0014 */ int unknown_0014;
/* 0018 */ int unknown_0018;
/* 001C */ float unknown_001C;
/* 0020 */ float unknown_0020;
/* 0024 */ float unknown_0024;
/* 0028 */ unsigned char unknown_0028;
/* 002C */ int unknown_002C;
/* 0030 */ int unknown_0030;
union {
/* 0034 */ short unknown_0034;
struct {
/* 0034 */ unsigned char m_moving;
/* 0035 */ unsigned char m_routeBuilt;
};
};
/* 0038 */ std::string unknown_0038;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(FlyingShipRouteEntry) == 0x3C);
static_assert(offsetof(FlyingShipRouteEntry, unknown_0018) == 0x18);
static_assert(offsetof(FlyingShipRouteEntry, unknown_0038) == 0x38);
static_assert(sizeof(CFlyingShipRouteInfo) == 0x50);
static_assert(offsetof(CFlyingShipRouteInfo, entries) == 0x04);
static_assert(offsetof(CFlyingShipRouteInfo, unknown_0028) == 0x28);
static_assert(offsetof(CFlyingShipRouteInfo, unknown_0034) == 0x34);
static_assert(offsetof(CFlyingShipRouteInfo, unknown_0038) == 0x38);
#endif
#endif