Now with increment and decrement

This commit is contained in:
Greg Hellings
2025-02-25 15:36:58 -06:00
parent 0c7843b386
commit 93b2cb6447
5 changed files with 31 additions and 5 deletions
+8
View File
@@ -3,10 +3,18 @@
namespace sword_rs {
Module::Module(sword::SWModule* module) : module(module) { }
void Module::decrement() {
this->module->decrement();
}
rust::String Module::get_name() const {
return rust::String(this->module->getName());
}
void Module::increment() {
this->module->increment();
}
rust::String Module::render_text() {
return std::string(
(const char*) this->module->renderText()