RustySantorini / santorini-engines

1 stars 0 forks source link

Redo public interface of library #50

Closed Niyudi closed 9 months ago

Niyudi commented 9 months ago

Rather than packaging systems as individual executables, expose a public interface with dynamic fetching of engine objects. Since engines should work as singletons, creating a table with available engines should be enough to complement the dynamic trait-object engine fetching system already in place.

Users of said library, namely the game manager and the game client, can compile the engines on each build, since their sizes shouldn't be too big. Conditional compilation can be used, having engines and engine sets as cargo features.

Niyudi commented 9 months ago

Unplanned: leave conditional compilation to when it actually is a problem.