gamesettings

package
v0.0.0-...-aac1211 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameSettings

type GameSettings struct {
	IsWorldExist, IsGameStarted bool
	Regime                      regime.Regime
	AFKTimeout                  int
}

func NewGameSettings

func NewGameSettings() *GameSettings

func (*GameSettings) FromAPIMessage

func (gs *GameSettings) FromAPIMessage()

func (*GameSettings) SetAFKTimeout

func (gs *GameSettings) SetAFKTimeout(timeout int)

func (*GameSettings) SetGameStarted

func (gs *GameSettings) SetGameStarted(s bool)

func (*GameSettings) SetRegime

func (gs *GameSettings) SetRegime(r regime.Regime)

func (*GameSettings) SetWorldExist

func (gs *GameSettings) SetWorldExist(s bool)

func (*GameSettings) ToAPIMessage

func (gs *GameSettings) ToAPIMessage() *server_external.GameSettings

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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