Files
CodenameEngine/source/hscript/Config.hx
TheZoroForce240andGitHub 1c4c962f4d Add Funkin Modchart classes to hscript config to allow custom classes (#727)
* add funkin modchart to hscript config for custom classes

* change to only classes that are needed
2025-08-10 12:59:20 +03:00

38 lines
811 B
Haxe

package hscript;
class Config {
// Runs support for custom classes in these
public static final ALLOWED_CUSTOM_CLASSES = [
#if !DOCUMENTATION
"flixel",
"funkin",
#if MODCHARTING_FEATURES
"modchart.engine",
"modchart.backend.standalone",
#end
#end
];
// Runs support for abstract support in these
public static final ALLOWED_ABSTRACT_AND_ENUM = [
#if !DOCUMENTATION
"flixel",
"openfl",
"haxe.xml",
"haxe.CallStack",
"funkin",
#end
];
// Incase any of your files fail
// These are the module names
public static final DISALLOW_CUSTOM_CLASSES = [
];
public static final DISALLOW_ABSTRACT_AND_ENUM = [
"funkin.backend.scripting.events.sprite.PlayAnimContext", // Error: expected member name or ';' after declaration specifiers, Due to define macro from math.h
];
}