diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/src/example.h | 14 | ||||
-rw-r--r-- | test/src/register_types.cpp | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/src/example.h b/test/src/example.h index e9565f9..44c1531 100644 --- a/test/src/example.h +++ b/test/src/example.h @@ -107,4 +107,18 @@ public: VARIANT_ENUM_CAST(Example, Constants); +class ExampleVirtual : public Object { + GDCLASS(ExampleVirtual, Object); + +protected: + static void _bind_methods() {} +}; + +class ExampleAbstract : public Object { + GDCLASS(ExampleAbstract, Object); + +protected: + static void _bind_methods() {} +}; + #endif // EXAMPLE_CLASS_H diff --git a/test/src/register_types.cpp b/test/src/register_types.cpp index 6636d8a..873801b 100644 --- a/test/src/register_types.cpp +++ b/test/src/register_types.cpp @@ -24,6 +24,8 @@ void initialize_example_module(ModuleInitializationLevel p_level) { ClassDB::register_class<ExampleRef>(); ClassDB::register_class<ExampleMin>(); ClassDB::register_class<Example>(); + ClassDB::register_class<ExampleVirtual>(true); + ClassDB::register_abstract_class<ExampleAbstract>(); } void uninitialize_example_module(ModuleInitializationLevel p_level) { |