mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-02-01 17:38:19 +00:00
Merge pull request #209 from FunkinCrew/bugfix/week-5-scripts
Week 5 Script error fix
This commit is contained in:
commit
d769098b83
2
assets
2
assets
|
@ -1 +1 @@
|
||||||
Subproject commit fb7120cf30d7accda049409b68d8daa0e1e7650f
|
Subproject commit 3b05b0fdd8e3b2cd09b9e4e415c186bae8e3b7d3
|
|
@ -674,6 +674,22 @@ class SongNoteDataRaw
|
||||||
this.kind = kind;
|
this.kind = kind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The direction of the note, if applicable.
|
||||||
|
* Strips the strumline index from the data.
|
||||||
|
*
|
||||||
|
* 0 = left, 1 = down, 2 = up, 3 = right
|
||||||
|
*/
|
||||||
|
public inline function getDirection(strumlineSize:Int = 4):Int
|
||||||
|
{
|
||||||
|
return this.data % strumlineSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDirectionName(strumlineSize:Int = 4):String
|
||||||
|
{
|
||||||
|
return SongNoteData.buildDirectionName(this.data, strumlineSize);
|
||||||
|
}
|
||||||
|
|
||||||
@:jignored
|
@:jignored
|
||||||
var _stepTime:Null<Float> = null;
|
var _stepTime:Null<Float> = null;
|
||||||
|
|
||||||
|
@ -730,22 +746,6 @@ abstract SongNoteData(SongNoteDataRaw) from SongNoteDataRaw to SongNoteDataRaw
|
||||||
this = new SongNoteDataRaw(time, data, length, kind);
|
this = new SongNoteDataRaw(time, data, length, kind);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The direction of the note, if applicable.
|
|
||||||
* Strips the strumline index from the data.
|
|
||||||
*
|
|
||||||
* 0 = left, 1 = down, 2 = up, 3 = right
|
|
||||||
*/
|
|
||||||
public inline function getDirection(strumlineSize:Int = 4):Int
|
|
||||||
{
|
|
||||||
return this.data % strumlineSize;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDirectionName(strumlineSize:Int = 4):String
|
|
||||||
{
|
|
||||||
return SongNoteData.buildDirectionName(this.data, strumlineSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function buildDirectionName(data:Int, strumlineSize:Int = 4):String
|
public static function buildDirectionName(data:Int, strumlineSize:Int = 4):String
|
||||||
{
|
{
|
||||||
switch (data % strumlineSize)
|
switch (data % strumlineSize)
|
||||||
|
|
Loading…
Reference in a new issue