Batch #5195 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_17889 CPathFinder::LoadAttr: logic confirmed by peer review - fn_17908 CActorPickNode::AddPickInfo: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, alisonrag, OvoKore Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/ActorPickNode.cpp
33 lines
797 B
C++
33 lines
797 B
C++
#ifndef RAGNAROK_SOURCE_ACTORPICKNODE_H
|
|
#define RAGNAROK_SOURCE_ACTORPICKNODE_H
|
|
|
|
#include <cstddef>
|
|
#include <list>
|
|
|
|
struct ActorPickInfo {
|
|
/* 0000 */ float left;
|
|
/* 0004 */ float top;
|
|
/* 0008 */ unsigned char unknown_0008[0x20];
|
|
};
|
|
|
|
class CActorPickNode {
|
|
public:
|
|
void AddPickInfo(ActorPickInfo* info);
|
|
|
|
/* 0000 */ void* vtable;
|
|
/* 0004 */ int left;
|
|
/* 0008 */ int top;
|
|
/* 000C */ int right;
|
|
/* 0010 */ int bottom;
|
|
/* 0014 */ CActorPickNode* children[4];
|
|
/* 0024 */ std::list<ActorPickInfo*> pickInfos;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(ActorPickInfo) == 0x28);
|
|
static_assert(offsetof(CActorPickNode, children) == 0x14);
|
|
static_assert(offsetof(CActorPickNode, pickInfos) == 0x24);
|
|
static_assert(sizeof(CActorPickNode) == 0x2C);
|
|
#endif
|
|
|
|
#endif
|