server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package server 战地1服务器操作

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ban added in v1.1.0

func Ban(serverID, pid string) error

Ban player, check returned id

func ChangeMap added in v1.1.0

func ChangeMap(pgid string, index int) error

ChangeMap will change the map for players

func Kick added in v1.1.0

func Kick(gameID, pid, reason string) (string, error)

Kick player, reason needs BIG5, return reason and err

func Unban added in v1.1.0

func Unban(serverID, pid string) error

Unban player

Types

type Map added in v1.1.0

type Map struct {
	Name string
	Mode string
}

Map 服务器地图

func GetMapSlice added in v1.1.0

func GetMapSlice(gameID string) ([]*Map, error)

GetMapSlice returns map slice

Jump to

Keyboard shortcuts

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