Fix stuff

This commit is contained in:
NeeEoo
2024-03-01 02:43:42 +01:00
parent e05f0e6f3a
commit 1cdb7fe2f6
11 changed files with 14 additions and 25 deletions
+1 -2
View File
@@ -13,8 +13,7 @@ import flixel.math.FlxRect;
import flixel.math.FlxPoint;
import funkin.backend.system.interfaces.IBeatReceiver;
@:enum
abstract XMLAnimType(Int)
enum abstract XMLAnimType(Int)
{
var NONE = 0;
var BEAT = 1;
@@ -45,7 +45,9 @@ class HScript extends Script {
this.trace(v);
}));
#if GLOBAL_SCRIPT
funkin.backend.scripting.GlobalScript.call("onScriptCreated", [this, "hscript"]);
#end
loadFromString(code);
}
@@ -30,8 +30,7 @@ final class PlayAnimEvent extends CancellableEvent {
/**
Contains all contexts possible for `PlayAnimEvent`.
**/
@:enum
abstract PlayAnimContext(String) {
enum abstract PlayAnimContext(String) {
/**
No context was given for the animation.
The character won't dance until the animation is finished
+1 -2
View File
@@ -1,7 +1,6 @@
package funkin.backend.system;
@:enum
abstract ErrorCode(Int) {
enum abstract ErrorCode(Int) {
var OK = 0;
var FAILED = 1;
var MISSING_PROPERTY = 2;
@@ -125,8 +125,7 @@ typedef GitHubUser = {
var updated_at:String;
}
@:enum
abstract GitHubUserType(String) {
enum abstract GitHubUserType(String) {
var USER = "User";
var ORGANIZATION = "Organization";
}
@@ -185,8 +185,7 @@ class UpdaterProgress {
public function new() {}
}
@:enum
abstract UpdaterStep(Int) {
enum abstract UpdaterStep(Int) {
var PREPARING = 0;
var DOWNLOADING_ASSETS = 1;
var DOWNLOADING_EXECUTABLE = 2;