Skip to content

Commit

Permalink
Merge pull request #84 from DaniElectra/matchmaking-constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow authored Sep 1, 2024
2 parents 036e87b + 9e6e503 commit a9e527b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions match-making/constants/join_matchmake_session_behavior.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package constants

// JoinMatchmakeSessionBehavior is used to indicate the behavior that joining a matchmake session will have
type JoinMatchmakeSessionBehavior uint8

const (
// JoinMatchmakeSessionBehaviorJoinMyself indicates that the caller wants to join the session
JoinMatchmakeSessionBehaviorJoinMyself JoinMatchmakeSessionBehavior = iota

// JoinMatchmakeSessionBehaviorImAlreadyJoined indicates that the caller is already joined into the session
JoinMatchmakeSessionBehaviorImAlreadyJoined
)
24 changes: 24 additions & 0 deletions match-making/constants/selection_method.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package constants

// SelectionMethod is used to indicate the selection method used when selecting a gathering
type SelectionMethod uint32

const (
// SelectionMethodRandom indicates a random selection
SelectionMethodRandom SelectionMethod = iota

// SelectionMethodNearestNeighbor indicates a selection based on proximity to an attribute
SelectionMethodNearestNeighbor

// SelectionMethodBroadenRange indicates a ranked selection
SelectionMethodBroadenRange

// SelectionMethodProgressScore indicates a selection based on the progress score
SelectionMethodProgressScore

// SelectionMethodBroadenRange indicates a ranked selection based on the progress score
SelectionMethodBroadenRangeWithProgressScore

// SelectionMethodScoreBased indicates an unknown selection
SelectionMethodScoreBased
)

0 comments on commit a9e527b

Please sign in to comment.