hhyyrylainen / Leviathan

Leviathan Game Engine
Other
17 stars 8 forks source link

Add conversions for script calling #28

Open hhyyrylainen opened 6 years ago

hhyyrylainen commented 6 years ago

Now only exact type matches are accepted. It would be much better to allow integer and float type conversions. And also conversions with dynamic_cast (if it is possible to somehow detect that the cast might succeed). This makes calling scripts from C++ easier.