rodecomp/Source/UI/Layout/SnapObject.h
ragnarok-clanker 1526bc8ecb Decompile fn_09720 (CSnapMgr::Clear)
Batch #11020 by cremane: 1 byte-identical, 0 confirmed by peer review.

- fn_09720 CSnapMgr::Clear: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-04 18:47:27 +00:00

29 lines
686 B
C++

#ifndef RAGNAROK_SOURCE_UI_LAYOUT_SNAPOBJECT_H
#define RAGNAROK_SOURCE_UI_LAYOUT_SNAPOBJECT_H
#include <list>
class UIWindow;
class SnapObject {
public:
SnapObject();
virtual ~SnapObject();
int AdjacentSide(const SnapObject& other) const;
void Remove(SnapObject* object);
bool Contains(SnapObject* target);
bool Connected(SnapObject* target);
int GetHeight() const;
void AccumulateHeight(int& height, int side) const;
void MoveBranch(int dx, int dy, int side);
/* 0004 */ UIWindow* window;
/* 0008 */ std::list<SnapObject*> edges[4];
/* 0028 */ int visited;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(SnapObject) == 44);
#endif
#endif