Closed Nytra closed 3 months ago
I'm already redoing the Json nodes
@Frozenreflex How are you redoing them?
@Nytra Check my branch
@Frozenreflex I think adding the generic types attribute to the binding generator would be a good idea because then you can populate the common generic types list in the UI
@Frozenreflex Also, you can't connect ProtoFlux value inputs to ObjectInput<T>
it needs to be a ValueInput<T>
that's why in my PR I split the nodes into Object and Value variants.
why do i put up with this game's bad design choices
i'd already encountered that for the outputs, but i guess i didn't test the inputs, gonna do that in a sec
public struct ObjectInput<T> : IObjectInput<T>, IInput<T>, IInput
public class ObjectOutput<T> : Output<T>, IObjectOutput<T>, IOutput<T>, IOutput
public struct ValueInput<T> : IValueInput<T>, IInput<T>, IInput where T : unmanaged
public class ValueOutput<T> : Output<T>, IValueOutput<T>, IOutput<T>, IOutput where T : unmanaged
why
also i fixed it if you want to look at it
@Xlinka I think Frozen's branch should be merged then I will make additional PRs later
Marks necessary types as data model types
Improves binding generator to use constraint clauses and generic types attribute
Fixes JSON nodes, create value and object variants of the nodes
Closes #42