ZakShearman / mc-tower-defence

Tower defence gamemode for minestom (EmortalMC)
GNU Lesser General Public License v2.1
11 stars 1 forks source link

Share inventories between players rather than creating new ones #76

Closed LooFifteen closed 6 months ago

LooFifteen commented 6 months ago

Sharing inventories between players for the upgrade UI, mob spawning UI, etc. will make it easier to synchronize the inventories if multiple players have them open at the same time. This will work as there are no moving items in any of the inventories. Any action in UI will change a single inventory and will be reflected amongst all players will little-to-no effort.

ZakShearman commented 6 months ago

But there are moving items in the inventories or items that are unique to each player?

Upgrade UI:

Mob Spawning UI:

I'm not aware of a single GUI in the game apart from tower GUIs that can be common between users. Even tower UIs will likely need to be user specific in the future if there are upgrade paths (i.e to prevent griefing by only allowing the user that placed to tower to choose the path).

LooFifteen commented 6 months ago

I see. I didn't realise that unlocks are user-specific.