From e18de1d84c0b9a6baa631c657ec9cc90c29095b3 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 9 Jul 2018 15:16:28 +0200 Subject: [PATCH] Rename App to Engine --- lib/app_component.dart | 6 +++--- lib/src/{App.dart => Engine.dart} | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename lib/src/{App.dart => Engine.dart} (97%) diff --git a/lib/app_component.dart b/lib/app_component.dart index 6ac334e..4169c55 100644 --- a/lib/app_component.dart +++ b/lib/app_component.dart @@ -1,7 +1,7 @@ import 'package:angular/angular.dart'; import 'dart:html' as html; -import 'package:rules_of_living/src/App.dart'; +import 'package:rules_of_living/src/Engine.dart'; @Component( selector: 'my-app', @@ -10,7 +10,7 @@ import 'package:rules_of_living/src/App.dart'; class AppComponent implements OnInit { var name = "World"; - App engine; + Engine engine; @ViewChild("caCanvas") html.CanvasElement canvas; @@ -24,7 +24,7 @@ class AppComponent implements OnInit { If you see this the app is broken :( ''', canvas.width/2, canvas.height/2); - engine = new App(canvas); + engine = new Engine(canvas); html.window.animationFrame.then(animFrame); } diff --git a/lib/src/App.dart b/lib/src/Engine.dart similarity index 97% rename from lib/src/App.dart rename to lib/src/Engine.dart index 21847ac..04b4e95 100644 --- a/lib/src/App.dart +++ b/lib/src/Engine.dart @@ -2,7 +2,7 @@ import 'dart:html' as html; import 'package:rules_of_living/src/Grid.dart'; -class App { +class Engine { // Elapsed Time Counter - useful for Safety Timeout Stopwatch _elapsed = new Stopwatch(); @@ -22,7 +22,7 @@ class App { Grid grid = new Grid(100, 100); bool running = false; - App(this.canvas) { + Engine(this.canvas) { _elapsed.start(); grid.addPattern(amount: 15, dispersal: 5); }