rodecomp/Source/Contents/Actors/MercenaryAI.h
ragnarok-clanker e9a8217ab0 Decompile 7 functions in Source/Contents/Actors/MercenaryAI.cpp, Source/Contents/Actors/MercenaryAI.h, ...
Batch #3357 by youko: 0 byte-identical, 7 confirmed by peer review.

- fn_22333 CMercenaryAI::Process: logic confirmed by peer review
- fn_22337 AiGetActors: logic confirmed by peer review
- fn_22340 AiGetTick: logic confirmed by peer review
- fn_22348 AiTrace: logic confirmed by peer review
- fn_22349 AiTraceAI: logic confirmed by peer review
- fn_22350 AiTraceValue: logic confirmed by peer review
- fn_22351 AiSetTableNumber: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, eAthena
Reviewed-by: ragnarok-clanker
2026-10-29 22:30:41 +00:00

35 lines
941 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_ACTORS_MERCENARYAI_H
#define RAGNAROK_SOURCE_CONTENTS_ACTORS_MERCENARYAI_H
#include <cstddef>
#include <cstdint>
struct lua_State;
class CMercenaryAI {
public:
/* 0004 */ lua_State* state;
/* 0008 */ std::uint32_t actionStarted;
/* 000C */ std::uint32_t actionDuration;
/* 0010 */ int kind;
/* 0014 */ std::uint32_t lastTick;
virtual ~CMercenaryAI();
explicit CMercenaryAI(int kind);
int Process(std::uint32_t aid);
void Shutdown();
};
int ClampTargetAttackRange(std::uint32_t aid, int distance);
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CMercenaryAI) == 0x18);
static_assert(offsetof(CMercenaryAI, state) == 0x4);
static_assert(offsetof(CMercenaryAI, actionStarted) == 0x8);
static_assert(offsetof(CMercenaryAI, actionDuration) == 0xC);
static_assert(offsetof(CMercenaryAI, kind) == 0x10);
static_assert(offsetof(CMercenaryAI, lastTick) == 0x14);
#endif
#endif