Documentation
¶
Index ¶
Constants ¶
View Source
const ( WeaponListCSV = "/CSO2-Server/assert/cstrike/scripts/item_list.csv" ExpLevelCSV = "/CSO2-Server/assert/cstrike/scripts/exp_level.csv" UnlockCSV = "/CSO2-Server/assert/cstrike/scripts/item_unlock.csv" BoxCSV = "/CSO2-Server/assert/cstrike/scripts/supplyList.csv" VipCSV = "/CSO2-Server/assert/cstrike/scripts/vip_info.csv" DefaultItemCSV = "/CSO2-Server/assert/cstrike/scripts/defaultItemList.csv" ShopItemCSV = "/CSO2-Server/assert/cstrike/scripts/shop.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 = "注册成功!" )
Functions ¶
func SetLocales ¶
func SetLocales()
Types ¶
type CSO2Conf ¶
type CSO2Conf struct { PORT uint32 HolePunchPort uint32 EnableDataBase uint32 DBUserName string DBpassword string DBaddress string DBport string MaxUsers uint32 EnableShop uint32 UnlockAllWeapons 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 ¶
type CSO2Locales struct { CSO2_SERVER_ERROR string CSO2_LOGIN_ALREADY string CSO2_LOGIN_EXIT_FORCE string CSO2_LOGIN_ERROR string CSO2_ROOM_COUNT_MODE_ERROR string CSO2_ROOM_JOIN_ERROR string CSO2_GM_ADD_ALLWEAPONS string CSO2_CHANNEL_MESSAGE_NOT_IN string CSO2_GM_NO_AUTHORIZE string CSO2_USER_NEW_ITEM string CSO2_USER_NEW_ITEM_RESTART string CSO2_CHANNEL_MESSAGE 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 MOTD []byte }
func (*CSO2Locales) InitLocales ¶
func (locales *CSO2Locales) InitLocales(path string) bool
func (*CSO2Locales) InitMotd ¶
func (locales *CSO2Locales) InitMotd(path string)
Click to show internal directories.
Click to hide internal directories.