1 Star 0 Fork 1

eetuuuu/common

forked from 叶向栋/common 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
common.go 1.80 KB
一键复制 编辑 原始数据 按行查看 历史
xdye@qumitech.com 提交于 2020-04-18 11:39 +08:00 . fix bug; add hero value type
package common
const Account string = "account"
const FIGHT string = "fight"
const GAME string = "game"
const (
MessageDefault = 0
)
const (
Position = "pos"
)
type HeroType uint32
var (
Physical HeroType = 0 // 物理
Magic HeroType = 1 // 法术
)
//
//const (
// // common shop items, player can
// MaxScore string = "_max_score" // 最大积分
// TotalPer string = "_total_per" // 最大积分对应的万分比
//
// DayMaxScore string = "_day_max_score" // 每日最大积分
// DayMaxScoreTime string = "_day_max_score_time" // 每日最大积分时间
//
// WeekMaxScore string = "_week_max_score" // 每周最大积分
// WeekMaxScoreTime string = "_week_max_score_time" // 每周最大积分时间
//)
//const (
// // 游戏数据从8000 开始
// Games int32 = 8000
// // 每个游戏暂定50个数据
// GameInterval int32 = 50
//)
//
//const (
// // 游戏次数
// GameNum int32 = 1
// // 皮肤id
// SkinId int32 = 2
//)
//
//const (
// // 游戏appid
// AppName_QMXCD string = "qmxcd"
//)
//
//func GetGameNumPropId(appId string) int32{
// return GetGameBeginId(appId) + GameNum
//}
//
//func GetSkinPropId(appId string) int32{
// return GetGameBeginId(appId) + SkinId
//}
//
//func GetGameBeginId(appId string) int32 {
// switch appId {
// case AppName_QMXCD:
// return Games+ GameInterval* 0
// }
// return Games
//}
//func GetAttriTOValue(attrs []*user_center_service.PlayerAttribute, key string) int64{
// if attri := common.SelectAttr(attrs,key);attri != nil{
// if value,err := strconv.ParseInt(attri.GetAttri().GetStr(),10,32); err ==nil{
// return value
// }
// }
// return 0
//}
//
//func GetAttriValue(attrs []*user_center_service.PlayerAttribute, key string) string{
// if attri := common.SelectAttr(attrs,key);attri != nil{
// return attri.GetAttri().GetStr()
// }
// return ""
//}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/eetuuuu/common.git
git@gitee.com:eetuuuu/common.git
eetuuuu
common
common
master

搜索帮助