Fixes narray::Length not being a property in angelscript.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-09-25 18:33:12 +02:00
parent 9fd88f6192
commit 1e10d25dbd
2 changed files with 11 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ public:
Ensure(engine->RegisterObjectBehaviour("narray<T>", asBEHAVE_RELEASE, "void f()",
asMETHOD(NativeArray, Release), asCALL_THISCALL));
Ensure(engine->RegisterObjectMethod("narray<T>", "uint64 Length() const", asMETHOD(NativeArray, Length),
Ensure(engine->RegisterObjectMethod("narray<T>", "uint64 get_Length() const property", asMETHOD(NativeArray, Length),
asCALL_THISCALL) >= 0);
Ensure(engine->RegisterObjectMethod("narray<T>", "const T@ At(uint64 index) const", asMETHOD(NativeArray, At),
asCALL_THISCALL) >= 0);