derail-valley-modding / custom-car-loader

A Derail Valley mod that allows the addition of new cars and locomotive types to the game.
https://nexusmods.com/derailvalley/mods/324
MIT License
14 stars 6 forks source link

Port Configuration & Linking #173

Closed katycat5e closed 10 months ago

katycat5e commented 11 months ago
lassombra commented 11 months ago

Note - port id and fuse id filter annotation is done in #172, so it's generation annotations that need added.

SimConnections specifically we don't want to do in Unity I think, but rather detect components that create ports and add them to some kind of internal list to make available in port selection - but then we could still save the whole port id - that way we don't have to do any special magic to link up ports at import time - they should just work. The entire design of the port system is you can put a port id in and as long as you get it right it is attached automatically at spawn.

katycat5e commented 11 months ago

Ah I see, I had a misconception about how the annotations were used. So it's the PortDefinition and PortReferenceDefinition that we need the replacement logic for.