Skip to content

Commit

Permalink
more reflectutil additions (#3809)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnormalPoof authored Jan 17, 2025
1 parent 9f23a7c commit b5d95d5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions source/funkin/util/ReflectUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,19 @@ class ReflectUtil
{
return Reflect.hasField(obj, name);
}

public static function copyAnonymousFieldsOf(obj:Dynamic):Dynamic
{
return Reflect.copy(obj);
}

public static function deleteAnonymousField(obj:Dynamic, name:String):Bool
{
return Reflect.deleteField(obj, name);
}

public static function compareValues(valueA:Dynamic, valueB:Dynamic):Int
{
return Reflect.compare(valueA, valueB);
}
}

0 comments on commit b5d95d5

Please sign in to comment.