mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
24 lines
510 B
Haxe
24 lines
510 B
Haxe
package src;
|
|
|
|
@:publicFields
|
|
class TimeState {
|
|
var timeSinceLoad:Float;
|
|
var currentAttemptTime:Float;
|
|
var gameplayClock:Float;
|
|
var dt:Float;
|
|
var ticks:Int; // How many 32ms ticks have happened
|
|
var subframe:Float;
|
|
|
|
public function new() {}
|
|
|
|
public function clone() {
|
|
var n = new TimeState();
|
|
n.timeSinceLoad = this.timeSinceLoad;
|
|
n.currentAttemptTime = this.currentAttemptTime;
|
|
n.gameplayClock = this.gameplayClock;
|
|
n.dt = this.dt;
|
|
n.ticks = ticks;
|
|
n.subframe = subframe;
|
|
return n;
|
|
}
|
|
}
|