Previously InternalCalls were limited in that they could only be bound to a function defined in a native dll. And while this could also be a game function this was still somewhat cumbersome.
This PR aims to alleviate that by adding new options to the InternalCallAttribute.
This PR will also introduce automatic marshaling for any type that inherits from SharpPluginLoader.Core.NativeWrapper. The marshaling process is realized simply by passing the Instance member.
Previously InternalCalls were limited in that they could only be bound to a function defined in a native dll. And while this could also be a game function this was still somewhat cumbersome.
This PR aims to alleviate that by adding new options to the
InternalCallAttribute
.The currently planned API looks something this:
This PR will also introduce automatic marshaling for any type that inherits from
SharpPluginLoader.Core.NativeWrapper
. The marshaling process is realized simply by passing theInstance
member.