diff options
author | Robert Clarke <clarke.john.robert@gmail.com> | 2023-02-12 09:42:25 +0100 |
---|---|---|
committer | Robert Clarke <clarke.john.robert@gmail.com> | 2023-02-12 09:42:25 +0100 |
commit | e7ee0ddbefa8f6696aa7b5a001b3a04eb046ba0d (patch) | |
tree | 025f3845c762847e1fb2004741566cfa289c35ae | |
parent | ff47bd9ba6b102c677f8ee52fd4bd243df708a21 (diff) |
Just changed bracketing style
-rw-r--r-- | extension/src/TestSingleton.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/extension/src/TestSingleton.cpp b/extension/src/TestSingleton.cpp index 0855a30..2da8000 100644 --- a/extension/src/TestSingleton.cpp +++ b/extension/src/TestSingleton.cpp @@ -6,31 +6,26 @@ using namespace godot; using namespace OpenVic2; -TestSingleton *TestSingleton::singleton = nullptr; +TestSingleton* TestSingleton::singleton = nullptr; -void TestSingleton::_bind_methods() -{ +void TestSingleton::_bind_methods() { ClassDB::bind_method(D_METHOD("hello_singleton"), &TestSingleton::hello_singleton); } -TestSingleton *TestSingleton::get_singleton() -{ +TestSingleton *TestSingleton::get_singleton() { return singleton; } -TestSingleton::TestSingleton() -{ +TestSingleton::TestSingleton() { ERR_FAIL_COND(singleton != nullptr); singleton = this; } -TestSingleton::~TestSingleton() -{ +TestSingleton::~TestSingleton() { ERR_FAIL_COND(singleton != this); singleton = nullptr; } -void TestSingleton::hello_singleton() -{ +void TestSingleton::hello_singleton() { UtilityFunctions::print("Hello GDExtension Singleton!"); }
\ No newline at end of file |