Documentation
¶
Index ¶
- Variables
- func DataDir() string
- func HashComplexity() int
- func HashLength() int
- func HashMemory() int
- func HashSalt() string
- func MaxPlayers() int
- func PacketHandlers() string
- func PlayerDB() string
- func PlayerDriver() string
- func Port() int
- func Verbose() bool
- func Version() int
- func WSPort() int
- func WorldDB() string
- func WorldDriver() string
Constants ¶
This section is empty.
Variables ¶
View Source
var TomlConfig struct { DataDir string `toml:"data_directory"` DbioDefs string `toml:"dbio_defs"` Version int `toml:"version"` Port int `toml:"port"` MaxPlayers int `toml:"max_players"` PacketHandlerFile string `toml:"packet_handler_table"` Database struct { PlayerDriver string `toml:"player_driver"` WorldDriver string `toml:"world_driver"` PlayerDB string `toml:"player_db"` WorldDB string `toml:"world_db"` } `toml:"database"` Crypto struct { RsaKeyFile string `toml:"rsa_key"` HashSalt string `toml:"hash_salt"` HashComplexity int `toml:"hash_complexity"` HashMemory int `toml:"hash_memory"` HashLength int `toml:"hash_length"` } `toml:"crypto"` }
TomlConfig A data structure representing the RSCGo TOML configuration file.
View Source
var Verbosity = int(0)
Verbosity Represents the level of verbosity with which the game should output debug information.
Functions ¶
func HashComplexity ¶
func HashComplexity() int
func HashLength ¶
func HashLength() int
func HashMemory ¶
func HashMemory() int
func MaxPlayers ¶
func MaxPlayers() int
func PacketHandlers ¶
func PacketHandlers() string
func PlayerDriver ¶
func PlayerDriver() string
func Port ¶
func Port() int
Port Returns the primary TCP/IP port to listen for incoming connections on
func Verbose ¶
func Verbose() bool
Verbose Returns true if the current Verbosity level is above 0, otherwise returns false.
func WSPort ¶
func WSPort() int
WSPort Returns the primary TCP/IP port to listen for incoming websocket connections on
func WorldDriver ¶
func WorldDriver() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.