İlk commit: Stepstead Godot istemci (4.6 Mobile)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
commit
6a1706051d
346 changed files with 14415 additions and 0 deletions
20
native/pedometer-ios/pedometer_module.mm
Normal file
20
native/pedometer-ios/pedometer_module.mm
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#import "pedometer_module.h"
|
||||
#import "pedometer.h"
|
||||
|
||||
#import "core/config/engine.h"
|
||||
#import "core/object/class_db.h"
|
||||
|
||||
Pedometer *pedometer_singleton = nullptr;
|
||||
|
||||
void pedometer_init_module() {
|
||||
ClassDB::register_class<Pedometer>();
|
||||
pedometer_singleton = memnew(Pedometer);
|
||||
Engine::get_singleton()->add_singleton(Engine::Singleton("Pedometer", pedometer_singleton));
|
||||
}
|
||||
|
||||
void pedometer_deinit_module() {
|
||||
if (pedometer_singleton) {
|
||||
memdelete(pedometer_singleton);
|
||||
pedometer_singleton = nullptr;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue