Add software interpreter implementation of Timer ship
authorAdam Megacz <adam@megacz.com>
Mon, 27 Jul 2009 03:23:39 +0000 (20:23 -0700)
committerAdam Megacz <adam@megacz.com>
Mon, 27 Jul 2009 03:23:39 +0000 (20:23 -0700)
ships/Timer.ship

index 5eff426..0943bca 100644 (file)
@@ -29,7 +29,10 @@ data  out:   out
 
 == Fleeterpreter ====================================================
 
-  public void service() { }
+public void service() {
+    if (!box_out.readyForDataFromShip()) return;
+    box_out.addDataFromShip(System.currentTimeMillis());
+}
 
 == FleetSim ==============================================================