✅ Generalized Storage
I am building a library that will act as a game engine for a card game.
I want this to be a tool someone can use to build a game server for the game. I want to allow the developer to choose their storage method.
Are there any established frameworks to allow the developer to choose how to store stuff? Half my issue is i am not really sure what the options are. I've worked with EF core for SQL stuff and there is JSON, but i am sure there are many other options like a NoSQL database so i am just kind of looking for what people do.
2 Replies
you would define the storage layer as an interface (or more interfaces, depending on the complexity needed) and let them implement whatever they want as long as it implements the interfaces your engine needs
nifty. My brain overcomplicated that thx