standalone conductor part 2
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
968
|
||||
969
|
||||
@@ -16,36 +16,48 @@ class MusicBeatState extends FlxUIState implements IBeatReceiver
|
||||
private var lastBeat:Float = 0;
|
||||
private var lastStep:Float = 0;
|
||||
|
||||
/**
|
||||
* Whenever the Conductor auto update should be enabled or not.
|
||||
*/
|
||||
public var cancelConductorUpdate:Bool = false;
|
||||
|
||||
/**
|
||||
* Current step
|
||||
*/
|
||||
public var curStep:Int = 0;
|
||||
|
||||
public var curStep(get, never):Int;
|
||||
/**
|
||||
* Current beat
|
||||
*/
|
||||
public var curBeat:Int = 0;
|
||||
|
||||
|
||||
public var curBeat(get, never):Int;
|
||||
/**
|
||||
* Current step, as a `Float` (ex: 4.94, instead of 4)
|
||||
*/
|
||||
public var curStepFloat:Float = 0;
|
||||
|
||||
public var curStepFloat(get, never):Float;
|
||||
/**
|
||||
* Current beat, as a `Float` (ex: 1.24, instead of 1)
|
||||
*/
|
||||
public var curBeatFloat:Float = 0;
|
||||
public var curBeatFloat(get, never):Float;
|
||||
/**
|
||||
* Current song position (in milliseconds).
|
||||
*/
|
||||
public var songPos(get, never):Float;
|
||||
|
||||
inline function get_curStep():Int
|
||||
return Conductor.curStep;
|
||||
inline function get_curBeat():Int
|
||||
return Conductor.curBeat;
|
||||
inline function get_curStepFloat():Float
|
||||
return Conductor.curStepFloat;
|
||||
inline function get_curBeatFloat():Float
|
||||
return Conductor.curBeatFloat;
|
||||
inline function get_songPos():Float
|
||||
return Conductor.songPosition;
|
||||
|
||||
/**
|
||||
* Game Controls.
|
||||
*/
|
||||
public var controls(get, never):Controls;
|
||||
|
||||
/**
|
||||
* Whenever the Conductor auto update should be enabled or not.
|
||||
*/
|
||||
public var cancelConductorUpdate:Bool = false;
|
||||
|
||||
inline function get_controls():Controls
|
||||
return PlayerSettings.player1.controls;
|
||||
|
||||
@@ -18,22 +18,39 @@ class MusicBeatSubstate extends FlxSubState implements IBeatReceiver
|
||||
private var lastBeat:Float = 0;
|
||||
private var lastStep:Float = 0;
|
||||
|
||||
|
||||
/**
|
||||
* Current step
|
||||
*/
|
||||
public var curStep:Int = 0;
|
||||
public var curStep(get, never):Int;
|
||||
/**
|
||||
* Current beat
|
||||
*/
|
||||
public var curBeat:Int = 0;
|
||||
public var curBeat(get, never):Int;
|
||||
/**
|
||||
* Current step, as a `Float` (ex: 4.94, instead of 4)
|
||||
*/
|
||||
public var curStepFloat:Float = 0;
|
||||
public var curStepFloat(get, never):Float;
|
||||
/**
|
||||
* Current beat, as a `Float` (ex: 1.24, instead of 1)
|
||||
*/
|
||||
public var curBeatFloat:Float = 0;
|
||||
public var curBeatFloat(get, never):Float;
|
||||
/**
|
||||
* Current song position (in milliseconds).
|
||||
*/
|
||||
public var songPos(get, never):Float;
|
||||
|
||||
inline function get_curStep():Int
|
||||
return Conductor.curStep;
|
||||
inline function get_curBeat():Int
|
||||
return Conductor.curBeat;
|
||||
inline function get_curStepFloat():Float
|
||||
return Conductor.curStepFloat;
|
||||
inline function get_curBeatFloat():Float
|
||||
return Conductor.curBeatFloat;
|
||||
inline function get_songPos():Float
|
||||
return Conductor.songPosition;
|
||||
|
||||
/**
|
||||
* Game Controls.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user