database

package
v2.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGatheringForParticipation

func CheckGatheringForParticipation(manager *common_globals.MatchmakingManager, gatheringID uint32, participantsCheck []*types.PID) *nex.Error

CheckGatheringForParticipation checks that the given PIDs are participating on the gathering ID

func CreateMatchmakeSession

func CreateMatchmakeSession(manager *common_globals.MatchmakingManager, connection *nex.PRUDPConnection, matchmakeSession *match_making_types.MatchmakeSession) *nex.Error

CreateMatchmakeSession creates a new MatchmakeSession on the database. No participants are added

func EndMatchmakeSessionsParticipation

func EndMatchmakeSessionsParticipation(manager *common_globals.MatchmakingManager, connection *nex.PRUDPConnection)

EndMatchmakeSessionsParticipation ends participation on all matchmake sessions

func FindMatchmakeSession

func FindMatchmakeSession(manager *common_globals.MatchmakingManager, connection *nex.PRUDPConnection, searchMatchmakeSession *match_making_types.MatchmakeSession) (*match_making_types.MatchmakeSession, *nex.Error)

FindMatchmakeSession finds a matchmake session with the given search matchmake session

func FindMatchmakeSessionBySearchCriteria

func FindMatchmakeSessionBySearchCriteria(manager *common_globals.MatchmakingManager, connection *nex.PRUDPConnection, searchCriterias []*match_making_types.MatchmakeSessionSearchCriteria, resultRange *types.ResultRange, sourceMatchmakeSession *match_making_types.MatchmakeSession) ([]*match_making_types.MatchmakeSession, *nex.Error)

FindMatchmakeSessionBySearchCriteria finds matchmake sessions with the given search criterias

func GetDetailedGatheringByID

func GetDetailedGatheringByID(manager *common_globals.MatchmakingManager, gatheringID uint32) (types.RVType, string, *nex.Error)

GetDetailedGatheringByID returns a Gathering as an RVType by its gathering ID

func GetMatchmakeSessionByGathering

func GetMatchmakeSessionByGathering(manager *common_globals.MatchmakingManager, endpoint *nex.PRUDPEndPoint, gathering *match_making_types.Gathering, participationCount uint32, startedTime *types.DateTime) (*match_making_types.MatchmakeSession, *nex.Error)

GetMatchmakeSessionByGathering gets a matchmake session with the given gathering data

func GetMatchmakeSessionByID

func GetMatchmakeSessionByID(manager *common_globals.MatchmakingManager, endpoint *nex.PRUDPEndPoint, gatheringID uint32) (*match_making_types.MatchmakeSession, string, *nex.Error)

GetMatchmakeSessionByID gets a matchmake session with the given gathering ID and the system password

func GetSimplePlayingSession

func GetSimplePlayingSession(manager *common_globals.MatchmakingManager, listPID []*types.PID) ([]*match_making_types.SimplePlayingSession, *nex.Error)

GetSimplePlayingSession returns the simple playing sessions of the given PIDs

func UpdateApplicationBuffer

func UpdateApplicationBuffer(manager *common_globals.MatchmakingManager, gatheringID uint32, applicationBuffer *types.Buffer) *nex.Error

UpdateApplicationBuffer updates the application buffer of a matchmake session

func UpdateGameAttribute

func UpdateGameAttribute(manager *common_globals.MatchmakingManager, gatheringID uint32, attributeIndex uint32, newValue uint32) *nex.Error

UpdateGameAttribute updates an attribute on a matchmake session

func UpdateParticipation

func UpdateParticipation(manager *common_globals.MatchmakingManager, gatheringID uint32, participation bool) *nex.Error

UpdateParticipation updates the participation of a matchmake session

func UpdateProgressScore

func UpdateProgressScore(manager *common_globals.MatchmakingManager, gatheringID uint32, progressScore uint8) *nex.Error

UpdateProgressScore updates the progress score on a matchmake session

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL