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.
68 lines
2.2 KiB
C++
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 areaBounds[4];
|
|
/* 0028 */ int areaFlags;
|
|
/* 002C */ float screenPosition[2];
|
|
/* 0034 */ float width;
|
|
/* 0038 */ float height;
|
|
|
|
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);
|
|
__declspec(noinline) 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 segmentIndex;
|
|
/* 001C */ float segmentProgress;
|
|
/* 0020 */ float segmentLength;
|
|
/* 0024 */ float travelledDistance;
|
|
/* 0028 */ unsigned char routeReset;
|
|
/* 002C */ int routeType;
|
|
/* 0030 */ int lineColor;
|
|
union {
|
|
/* 0034 */ short routeState;
|
|
struct {
|
|
/* 0034 */ unsigned char m_moving;
|
|
/* 0035 */ unsigned char m_routeBuilt;
|
|
};
|
|
};
|
|
/* 0038 */ std::string lineTextureName;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(FlyingShipRouteEntry) == 0x3C);
|
|
static_assert(offsetof(FlyingShipRouteEntry, areaBounds) == 0x18);
|
|
static_assert(offsetof(FlyingShipRouteEntry, height) == 0x38);
|
|
static_assert(sizeof(CFlyingShipRouteInfo) == 0x50);
|
|
static_assert(offsetof(CFlyingShipRouteInfo, entries) == 0x04);
|
|
static_assert(offsetof(CFlyingShipRouteInfo, routeReset) == 0x28);
|
|
static_assert(offsetof(CFlyingShipRouteInfo, routeState) == 0x34);
|
|
static_assert(offsetof(CFlyingShipRouteInfo, lineTextureName) == 0x38);
|
|
#endif
|
|
|
|
#endif
|