configure

package
v0.3.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	WeaponListCSV  = "/CSO2-Server/assert/cstrike/scripts/cso2_item_rev2.csv"
	ExpLevelCSV    = "/CSO2-Server/assert/cstrike/scripts/cso2_exp.csv"
	UnlockCSV      = "/CSO2-Server/assert/cstrike/scripts/cso2_item_unlock.csv"
	BoxCSV         = "/CSO2-Server/assert/cstrike/scripts/cso2_itembox_pool.csv"
	AchievementCSV = "/CSO2-Server/assert/cstrike/scripts/cso2_achievement.csv"
)

Variables

View Source
var (
	Conf    CSO2Conf
	Locales CSO2Locales

	MAIL_EMPTY       = "提示:邮箱不能为空!"
	MAIL_ERROR       = "提示:请输入正确的邮箱!"
	MAIL_SENT        = "已发送,请在一分钟之内完成注册!"
	USERNAME_EMPTY   = "提示:用户名不能为空!"
	USERNAME_EXISTS  = "提示:用户名已存在!"
	GAMENAME_EMPTY   = "提示:游戏昵称不能为空!"
	GAMENAME_EXISTS  = "提示:游戏昵称已存在!"
	PASSWORD_EMPTY   = "提示:密码不能为空!"
	CODE_EMPTY       = "提示:验证码不能为空!"
	CODE_WRONG       = "提示:验证码不正确!"
	NAME_ERROR       = "提示:用户名或昵称含有非法字符!"
	DATABASE_ERROR   = "提示:数据库错误,注册失败!"
	REGISTER_SUCCESS = "注册成功!"
)
View Source
var (
	ItemList   = make(map[uint32]ItemData)
	UnlockList = make(map[uint32]UnlockData)
)

Functions

func InitCSV added in v0.3.11

func InitCSV(path string)

func SetLocales added in v0.3.10

func SetLocales()

Types

type CSO2Conf

type CSO2Conf struct {
	PORT             uint32
	HolePunchPort    uint32
	EnableRedis      uint32
	EnableDataBase   uint32
	MaxUsers         uint32
	EnableShop       uint32
	UnlockAllWeapons uint32
	UnlockAllSkills  uint32
	RedisIP          string
	RedisPort        uint32
	DebugLevel       uint32
	LogFile          uint32
	EnableRegister   uint32
	EnableMail       uint32
	REGPort          uint32
	REGEmail         string
	REGPassWord      string
	REGSMTPaddr      string
	LocaleFile       string
	CodePage         string
	EnableConsole    uint32
	GMport           uint32
	GMusername       string
	GMpassword       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
	MAIL_EMPTY                 string
	MAIL_ERROR                 string
	MAIL_SENT                  string
	USERNAME_EMPTY             string
	USERNAME_EXISTS            string
	GAMENAME_EMPTY             string
	GAMENAME_EXISTS            string
	PASSWORD_EMPTY             string
	CODE_EMPTY                 string
	CODE_WRONG                 string
	NAME_ERROR                 string
	DATABASE_ERROR             string
	REGISTER_SUCCESS           string
}

func (*CSO2Locales) InitLocales added in v0.3.10

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

type ItemData added in v0.3.11

type ItemData struct {
	ItemID      uint32
	Name        string
	Class       string
	Category    string
	BuyCategory string
}

type UnlockData added in v0.3.11

type UnlockData struct {
	ItemID         uint32
	NextItemID     uint32
	ConditionFlag0 uint32
	Count0         uint32
	ConditionFlag1 uint32
	Count1         uint32
	ConditionFlag2 uint32
	Count2         uint32
}

Jump to

Keyboard shortcuts

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