rodecomp/Source/Contents/Actors/Item.h
ragnarok-clanker 95ef79d546 Decompile 2 functions in Source/Contents/World/WorldObjects.cpp, Source/Contents/World/World.h, ...
Batch #4425 by eAthena: 0 byte-identical, 2 confirmed by peer review.

- fn_17669 CWorld::GetItemByAID: logic confirmed by peer review
- fn_17670 CWorld::GetActorByGID: logic confirmed by peer review

Peer-reviewed-by: willerthal, Snow
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 03:00:41 +00:00

34 lines
899 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_ACTORS_ITEM_H
#define RAGNAROK_SOURCE_CONTENTS_ACTORS_ITEM_H
#include "Contents/Actors/RenderObject.h"
#include <cstddef>
#include <cstdint>
#include <string>
class CItem : public CRenderObject {
public:
void SubD8B5A0();
void SubD8B5B0();
bool OnProcess() override;
void Render(int argument) override;
/* 0138 */ unsigned char unknown_0138[0x20];
/* 0158 */ std::string name;
/* 0170 */ unsigned char unknown_0170[0x0C];
/* 017C */ std::uint32_t itemAid;
/* 0180 */ std::uint32_t isFalling;
/* 0184 */ float fallVelocity;
/* 0188 */ float fallOrigin;
/* 018C */ std::uint32_t unknown_018C;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(offsetof(CItem, name) == 0x158);
static_assert(offsetof(CItem, itemAid) == 0x17C);
static_assert(offsetof(CItem, isFalling) == 0x180);
static_assert(sizeof(CItem) == 0x190);
#endif
#endif