I'm trying to create a Reflection API for our game for use both in C++, and in scripts.
What i want to be able to do is store parameters passed to a function, and at some unspecified time in the future, call a function that can receive those parameters, either the exact types or types that can be cast to from the original arguments.
It should also optionally be possible to call a function with a given name that supports the first N arguments passed, ignoring the rest.
So far i've created a class that takes input arguments and stores them. I know how to set the arguments for a function if the types are an exact match, but converting all the types is a major hassle.
I'm wondering if there is any way to invoke the Angelscript compiler to perform these conversion for me, if possible.
I know it's unlikely, but i just wanted to ask in case it was possible.
Knowing what to do to convert one value to another would be a big help.