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.
9 lines
230 B
C++
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());
|
|
}
|