database

package
v0.0.0-...-76c7cc6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewUser

func AddNewUser(pid uint32)

func AddPlayerSession

func AddPlayerSession(pid uint32, urls []string, ip string, port string)

func AddPlayerToRoom

func AddPlayerToRoom(gid uint32, pid uint32, addplayercount uint32)

func ConnectAll

func ConnectAll()

func DeletePlayerSession

func DeletePlayerSession(pid uint32)

func DestroyRoom

func DestroyRoom(gid uint32)

func DoesSessionExist

func DoesSessionExist(pid uint32) bool

func DoesUserExist

func DoesUserExist(pid uint32) bool

func FindRoom

func FindRoom(gamemode uint32, public bool, region uint32, gameconfig uint32, vacantcount uint32, dlcmode uint32) uint32

func GetPlayerSessionAddress

func GetPlayerSessionAddress(pid uint32) string

func GetPlayerURLs

func GetPlayerURLs(pid uint32) []string

func GetRoomInfo

func GetRoomInfo(gid uint32) (uint32, uint32, uint32, uint32, uint32)

func GetUsernameFromPID

func GetUsernameFromPID(pid uint32) string

func IsAllowedGameModeAndRegion

func IsAllowedGameModeAndRegion(gamemode uint32, region uint32) bool

func NewRoom

func NewRoom(host uint32, gamemode uint32, public bool, region uint32, gameconfig uint32, playercount uint32, dlcmode uint32) uint32

func RemovePlayerFromRoom

func RemovePlayerFromRoom(gid uint32, pid uint32)

func UpdatePlayerSessionAll

func UpdatePlayerSessionAll(pid uint32, urls []string, ip string, port string)

func UpdatePlayerSessionURL

func UpdatePlayerSessionURL(pid uint32, oldurl string, newurl string)

func UpdateRoomHost

func UpdateRoomHost(gid uint32, newownerpid uint32)

func UpdateUserRating

func UpdateUserRating(pid uint32, gamemode uint32, rating uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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