configure

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Conf    CSO2Conf
	Locales CSO2Locales
)

Functions

func SetLocales added in v0.3.10

func SetLocales()

Types

type CSO2Conf

type CSO2Conf struct {
	PORT             uint32
	HolePunchPort    uint32
	EnableRedis      uint32
	EnableDataBase   uint32
	UseJson          uint32
	MaxUsers         uint32
	EnableShop       uint32
	UnlockAllWeapons uint32
	UnlockAllSkills  uint32
	RedisIP          string
	RedisPort        uint32
	DebugLevel       uint32
	LogFile          uint32
	EnableConsole    uint32
	EnableRegister   uint32
	EnableMail       uint32
	REGPort          uint32
	REGEmail         string
	REGPassWord      string
	REGSMTPaddr      string
	LocaleFile       string
}

func (*CSO2Conf) InitConf

func (conf *CSO2Conf) InitConf(path string)

type CSO2Locales added in v0.3.10

type CSO2Locales struct {
	GAME_ROOM_LEAVE_EARLY      string
	GAME_SERVER_ERROR          string
	GAME_LOGIN_ALREADY         string
	GAME_LOGIN_ERROR           string
	GAME_ROOM_COUNT_MODE_ERROR string
	GAME_ROOM_JOIN_ERROR       string
}

func (*CSO2Locales) InitLocales added in v0.3.10

func (locales *CSO2Locales) InitLocales(path string) bool

Jump to

Keyboard shortcuts

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