database

package
v0.0.0-...-2f3ca91 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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(rvcid 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(rvcid uint32)

func DestroyRoom

func DestroyRoom(gid uint32)

func DoesSessionExist

func DoesSessionExist(rvcid 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(rvcid uint32) string

func GetPlayerURLs

func GetPlayerURLs(rvcid uint32) []string

func GetRoomInfo

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

func GetRoomPlayers

func GetRoomPlayers(gid 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 RemovePlayer

func RemovePlayer(pid uint32)

func RemovePlayerFromRoom

func RemovePlayerFromRoom(gid uint32, pid uint32)

func UpdatePlayerSessionAll

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

func UpdatePlayerSessionURL

func UpdatePlayerSessionURL(rvcid 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