Running simple app
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user