rodecomp/Source/Contents/Actors/SpriteDrawingPolicy.h
ragnarok-clanker def028bf61 Decompile fn_10107 (AccessoryLayerDepth::OffsetLayerDepth)
Batch #2533 by ntrl: 0 byte-identical, 1 confirmed by peer review.

- fn_10107 AccessoryLayerDepth::OffsetLayerDepth: logic confirmed by peer review

Peer-reviewed-by: meitogi, willerthal, youko
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-29 18:11:20 +00:00

38 lines
1.2 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_ACTORS_SPRITEDRAWINGPOLICY_H
#define RAGNAROK_SOURCE_CONTENTS_ACTORS_SPRITEDRAWINGPOLICY_H
class LuaScript;
struct SpriteCellQuad;
struct SpriteColor;
struct SpriteFrameCell;
struct SpriteRleImage;
struct tagRECT;
struct AccessoryLayerDepth {
const int& bottomAccessory;
const int& topAccessory;
const int& middleAccessory;
void OffsetLayerDepth(int layer, SpriteCellQuad& quad, float bottomDepth, float topDepth) const;
};
struct SpriteDrawingPolicy {
LuaScript& script;
const unsigned char& newDrawOnTop;
int& argument00BC;
const int& argument0018;
const int& argument0010;
const int& argument0040;
const int& argument0044;
bool& helmRobe;
bool DrawOnTop() const;
bool SetRobe(int robe);
bool ProjectCell(
int unused, int layer, float scale, const SpriteFrameCell& cell, float x, float y, const float* position, float shift, float& bottomDepth,
float& topDepth, const SpriteRleImage& image, SpriteCellQuad& quad, tagRECT& bounds, SpriteColor& color, int offsetX, int offsetY, int flags
) const;
void OffsetLayerDepth(int layer, SpriteCellQuad& quad, float bottomDepth, float topDepth) const;
};
#endif