AlmasB / FXGL

Java / JavaFX / Kotlin Game Library (Engine)
http://almasb.github.io/FXGL/
MIT License
4.45k stars 555 forks source link

ReflectionFunctionCaller add call() for Objects, not just Strings #1389

Open AlmasB opened 1 month ago

AlmasB commented 1 month ago

In addition to:

fun call(functionName: String, args: List<String>): Any {
        return call(functionName, args.toTypedArray())
    }

val data = SomeClass() call(fName, data)