MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / TestMethod

Method TestMethod

Source/Engine/Tests/TestScripting.h:185–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184 // Test virtual method
185 API_FUNCTION() virtual int32 TestMethod(const String& str, API_PARAM(Ref) TestStructPOD& pod, API_PARAM(Ref) TestStruct& nonPod, const Array<TestStruct>& struct1, API_PARAM(Ref) Array<TestStruct>& struct2, API_PARAM(Out) Array<ScriptingObject*>& objects)
186 {
187 if (nonPod.Vector != Float3::One)
188 return -1;
189 nonPod.Object = this;
190 nonPod.Vector = Float3::UnitY;
191 return str.Length();
192 }
193
194 // Test trailing return type
195 API_FUNCTION() auto TestTrailingReturn(int32 number) -> float

Callers 1

TestScripting.cppFile · 0.45

Calls 1

LengthMethod · 0.45

Tested by

no test coverage detected