Skip to content

Commit

Permalink
Merge pull request #86 from PretendoNetwork/persistent-gatherings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow authored Jan 25, 2025
2 parents 0e0d9b6 + ad257d4 commit 1990e56
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
24 changes: 24 additions & 0 deletions match-making/constants/matchmake_system_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package constants

// MatchmakeSystemType represents the method of matchmaking being used
type MatchmakeSystemType uint32

const (
// MatchmakeSystemTypeInvalid indicates an invalid value
MatchmakeSystemTypeInvalid MatchmakeSystemType = iota

// MatchmakeSystemTypeAnybody indicates that anybody can join the MatchmakeSession
MatchmakeSystemTypeAnybody

// MatchmakeSystemTypeFriends indicates that only friends of the owner can join the MatchmakeSession
MatchmakeSystemTypeFriends

// MatchmakeSystemTypeFriendsInvite indicates that only friends of the owner with invitation can join the MatchmakeSession
MatchmakeSystemTypeFriendsInvite

// MatchmakeSystemTypeFriends indicates that anybody with an invitation can join the MatchmakeSession
MatchmakeSystemTypeInvite

// MatchmakeSystemTypeFriends indicates that the MatchmakeSession is part of a PersistentGathering
MatchmakeSystemTypePersistentGathering
)
15 changes: 15 additions & 0 deletions match-making/constants/persistent_gathering_type.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package constants

// PersistentGatheringType indicates the type of PersistentGathering
type PersistentGatheringType uint32

const (
// PersistentGatheringTypeOpen indicates that the PersistentGathering is open to everyone
PersistentGatheringTypeOpen PersistentGatheringType = iota

// PersistentGatheringTypePasswordLocked indicates that the PersistentGathering requires a password
PersistentGatheringTypePasswordLocked

// PersistentGatheringTypeOfficial indicates that the PersistentGathering is official
PersistentGatheringTypeOfficial
)

0 comments on commit 1990e56

Please sign in to comment.