Files
EVEngine/test/decal_script.cpp
T
西风逍遥游 0b8ff14a2b feat(decal): P2 IDecalQuery capability + script test
Adds the common-layer IDecalQuery capability (spawn/remove/clear/count/setLimit with an opaque texture handle) provided by the decal module at construction, so editor/devtools can drive decals without linking the module; adds a Squirrel script test (decal.nut + DecalScriptTest) covering eve.Decal() getName/clearAll/setLimit/update, and a C++ capability consumer test.
2026-08-23 00:57:15 +08:00

9 lines
230 B
C++

#include "ScriptTest.h"
extern const char *decal_content;
UnitSciptTest(DecalScriptTest, decal_content);
TEST_CASE_FIXTURE(DecalScriptTest, "DecalScriptTest.basic") {
CHECK(vm.callFunc(vm.findFunc("basic"), vm).toBool());
}