Running simple app

This commit is contained in:
2026-05-10 04:03:50 +02:00
parent 5916daaada
commit d3b6e88b14
2 changed files with 7 additions and 11 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ public class Application {
bool running; bool running;
i32 ticks; i32 ticks;
public constructor(String name) { public constructor(str* name) {
self.name = name; self.name = name.to_string();
self.tasks = new Vec(); self.tasks = new Vec();
self.plugins = new Vec(); self.plugins = new Vec();
+5 -9
View File
@@ -4,16 +4,12 @@ mod plugin;
mod logger; mod logger;
mod event; mod event;
use <app>;
// use <plugins::greeting>;
// use <plugins::statistics>;
void main() { void main() {
var app = new app::Application("mist-app"); var mut app_instance = new app::Application("mist-app");
// greeting::register(&mut app); // greeting::register(&mut app_instance);
// statistics::register(&mut app); // statistics::register(&mut app_instance);
app.boot(); app_instance.boot();
app.run(); app_instance.run();
} }