| 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 |