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 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
}
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
Click to show internal directories.
Click to hide internal directories.