rodecomp/Source/Contents/Actors/SpriteDrawingPolicy.cpp
ragnarok-clanker a47d20f8be Reconstruct readable C++ and organize cohesive source subsystems
Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.

Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
2026-10-25 07:42:41 +00:00

27 lines
874 B
C++

#include "Contents/Actors/SpriteDrawingPolicy.h"
#include "Script/LuaScript.h"
// OFFSET: 0x0080E3A0
// FUNCTION: fn_10106
bool SpriteDrawingPolicy::DrawOnTop() const {
bool drawOnTop = true;
if (this->newDrawOnTop == 1) {
int unusedPriority = 1;
this->script.Call(
"_New_DrawOnTop", "ddddd>bd", this->argument00BC, this->argument0018, this->argument0010, this->argument0040, this->argument0044, &drawOnTop,
&unusedPriority
);
} else {
this->script.Call("DrawOnTop", "ddddd>b", this->argument00BC, this->argument0018, this->argument0010, this->argument0040, this->argument0044, &drawOnTop);
}
return drawOnTop;
}
// OFFSET: 0x008124B0
// FUNCTION: fn_10111
bool SpriteDrawingPolicy::SetRobe(int robe) {
this->argument00BC = robe;
return this->script.CallTable("TB_Layer_Priority", "IsHelmRobe", "d>b", robe, &this->helmRobe);
}