The multiplayer game I am working on consists of multiple worlds/levels and one main hub world.
I am using Zay-ES and it internally uses HSQLDB for persisting entity data.
Each level has its own world. Levels going to be unlocked one by one as players progress through the gameplay.
Players’ data must be shared/synced between the worlds. (player stats, player inventory,…)
Only one world can be active at the same time.
Considering the above facts, is it a good idea to let each world has its own separate entity database?
If so, any idea how I can sync the player’s data?
In my current approach, I am using a single entity database and separating entities with a world ID component.
I want to know which approach should be good to take.