I want script and applications to be able to implement the c++ interfaces.
Here's my scenario all over again. I have a file and compute shader buffer classes, these can both be written to by any object that can be represented as a byte stream, so the file
and compute_buffer
implement the IWriteableBuffer
interface, these are application classes, the IWriteableBuffer
probably has a method write
that takes in a primitive or any bytes like object. then there's types like Vector2
that are registered by the application that can also be serialized, and also script specific types like a SaveData
structure, hence the interface ISerializable
that represents any object that can be represented as a bytes like and be written to a butter, so I need interfaces that both app types and script types can implement