jkomoros / boardgame

An in-progress framework in golang to easily build boardgame Progressive Web Apps
Apache License 2.0
31 stars 4 forks source link

Games can be configured to be open for observers or not, and whether new viewers join automatically #227

Closed jkomoros closed 7 years ago

jkomoros commented 7 years ago

Presumably this means that the GetUserIdsForGame will actually just be a GetGameExtra() that holds all of the extra stuff about a game that only server cares about

Originally captured in #71

jkomoros commented 7 years ago

If it's not open in general, perhaps in the future allowing listing observer ids

jkomoros commented 7 years ago

Implies there's a storage.getGameMetaData or something to hold things like owner and these settings

jkomoros commented 7 years ago

This implies that we need a security handler on view game, which knows about this config to let people through

jkomoros commented 7 years ago

Another option is to have server.GameStorageRecord, which embeds boardgame.GameStorageRecord but also includes things like HasEmptySlots, Users, Open.

Which would imply that UserIdsForGame would be subsumed by GameMetaData or something

jkomoros commented 7 years ago