Skip to content

Commit 65cd7c0

Browse files
authored
README: GCLASS to the top of class
1 parent e14bf7a commit 65cd7c0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,12 @@ Don't worry, you will still be able to add custom code to this files after confi
258258
using namespace godot;
259259
260260
class ExampleForRepo : public Control {
261+
// Register your class
262+
// Possible class types:
263+
// basic class GCLASS(name, base_name)
264+
// virtual class GVIRTUAL_CLASS(name, base_name)
265+
// abstract class GABSTRACT_CLASS(name, base_name)
266+
GCLASS(ExampleForRepo, Control);
261267
262268
// Signals
263269
GSIGNAL(example_signal, float typed_arg, untyped_arg);
@@ -367,12 +373,6 @@ public:
367373
bool _has_point(const Vector2 &point) const override;
368374
void _input(const Ref<InputEvent> &event) override;
369375
370-
// Register your class
371-
// Possible class types:
372-
// basic class GCLASS(name, base_name)
373-
// virtual class GVIRTUAL_CLASS(name, base_name)
374-
// abstract class GABSTRACT_CLASS(name, base_name)
375-
GCLASS(ExampleForRepo, Control);
376376
};
377377
378378
```

0 commit comments

Comments
 (0)