1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-01 11:13:06 +00:00

Granted access to scripts to some otherwise blacklisted functions.

This commit is contained in:
EliteMasterEric 2024-05-02 04:08:32 -04:00
parent 75af1b3947
commit 4d7f3a3643

View file

@ -0,0 +1,36 @@
package funkin.util;
import Type;
class ReflectUtil
{
public static function getClassFields(cls:Class<Dynamic>):Array<String>
{
return Type.getClassFields(cls);
}
public static function getClassFieldsOf(obj:Dynamic):Array<String>
{
return Type.getClassFields(Type.getClass(obj));
}
public static function getInstanceFields(cls:Class<Dynamic>):Array<String>
{
return Type.getInstanceFields(cls);
}
public static function getInstanceFieldsOf(obj:Dynamic):Array<String>
{
return Type.getInstanceFields(Type.getClass(obj));
}
public static function getClassName(cls:Class<Dynamic>):String
{
return Type.getClassName(cls);
}
public static function getClassNameOf(obj:Dynamic):String
{
return Type.getClassName(Type.getClass(obj));
}
}