1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Updated custom_modules (markdown)

Juan Linietsky
2015-02-10 16:35:27 -03:00
parent af72bc29fb
commit acaa2d3eb2

@@ -81,7 +81,7 @@ int Sumator::get_total() const {
return count; return count;
} }
void Sumator::_bind_methods() const { void Sumator::_bind_methods() {
ObjectTypeDB::bind_method("add",&Sumator::add); ObjectTypeDB::bind_method("add",&Sumator::add);
ObjectTypeDB::bind_method("reset",&Sumator::reset); ObjectTypeDB::bind_method("reset",&Sumator::reset);
@@ -104,6 +104,9 @@ With the following contents
```c++ ```c++
/* register_types.h */ /* register_types.h */
#include "sumator.h"
void register_sumator_types(); void register_sumator_types();
void unregister_sumator_types(); void unregister_sumator_types();
/* yes, the word in the middle must be the same as the module folder name */ /* yes, the word in the middle must be the same as the module folder name */