mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 09:59:07 -07:00
Initial commit
This commit is contained in:
39
src/package_45/name_182.as
Normal file
39
src/package_45/name_182.as
Normal file
@@ -0,0 +1,39 @@
|
||||
package package_45
|
||||
{
|
||||
import flash.utils.getTimer;
|
||||
import package_10.class_1;
|
||||
|
||||
public class name_182 extends class_1
|
||||
{
|
||||
public static var time:int;
|
||||
|
||||
public static var timeSeconds:Number;
|
||||
|
||||
public static var timeDelta:int;
|
||||
|
||||
public static var timeDeltaSeconds:Number;
|
||||
|
||||
public function name_182(priority:int)
|
||||
{
|
||||
super(priority);
|
||||
}
|
||||
|
||||
override public function start() : void
|
||||
{
|
||||
time = getTimer();
|
||||
timeSeconds = time / 1000;
|
||||
timeDelta = 0;
|
||||
timeDeltaSeconds = 0;
|
||||
}
|
||||
|
||||
override public function run() : void
|
||||
{
|
||||
var now:int = int(getTimer());
|
||||
timeDelta = now - time;
|
||||
timeDeltaSeconds = timeDelta / 1000;
|
||||
time = now;
|
||||
timeSeconds = time / 1000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user