mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
拆分了聊天数据,减小玩家数据结构大小
This commit is contained in:
@@ -2,61 +2,61 @@ package model
|
||||
|
||||
// GCGCard 卡牌
|
||||
type GCGCard struct {
|
||||
CardId uint32 `bson:"cardId"` // 卡牌Id
|
||||
Num uint32 `bson:"num"` // 数量
|
||||
FaceType uint32 `bson:"faceType"` // 卡面类型
|
||||
UnlockFaceTypeList []uint32 `bson:"unlockFaceTypeList"` // 解锁的卡面类型
|
||||
Proficiency uint32 `bson:"proficiency"` // 熟练程度等级
|
||||
ProficiencyRewardTakenIdxList []uint32 `bson:"faceType"` // 熟练程度奖励列表
|
||||
CardId uint32 // 卡牌Id
|
||||
Num uint32 // 数量
|
||||
FaceType uint32 // 卡面类型
|
||||
UnlockFaceTypeList []uint32 // 解锁的卡面类型
|
||||
Proficiency uint32 // 熟练程度等级
|
||||
ProficiencyRewardTakenIdxList []uint32 // 熟练程度奖励列表
|
||||
}
|
||||
|
||||
// GCGDeck 卡组
|
||||
type GCGDeck struct {
|
||||
Name string `bson:"name"` // 卡组名
|
||||
CharacterCardList []uint32 `bson:"characterCardList"` // 角色牌列表
|
||||
CardList []uint32 `bson:"cardList"` // 卡牌列表
|
||||
FieldId uint32 `bson:"fieldId"` // 牌盒样式Id
|
||||
CardBackId uint32 `bson:"cardBackId"` // 牌背样式Id
|
||||
CreateTime int64 `bson:"createTime"` // 卡组创建时间
|
||||
Name string // 卡组名
|
||||
CharacterCardList []uint32 // 角色牌列表
|
||||
CardList []uint32 // 卡牌列表
|
||||
FieldId uint32 // 牌盒样式Id
|
||||
CardBackId uint32 // 牌背样式Id
|
||||
CreateTime int64 // 卡组创建时间
|
||||
}
|
||||
|
||||
// GCGTavernChallenge 酒馆挑战信息
|
||||
type GCGTavernChallenge struct {
|
||||
CharacterId uint32 `bson:"characterId"` // 角色Id
|
||||
UnlockLevelIdList []uint32 `bson:"unlockLevelIdList"` // 解锁的等级Id
|
||||
CharacterId uint32 // 角色Id
|
||||
UnlockLevelIdList []uint32 // 解锁的等级Id
|
||||
}
|
||||
|
||||
// GCGBossChallenge Boss挑战信息
|
||||
type GCGBossChallenge struct {
|
||||
Id uint32 `bson:"Id"` // BossId
|
||||
UnlockLevelIdList []uint32 `bson:"unlockLevelIdList"` // 解锁的等级Id
|
||||
Id uint32 // BossId
|
||||
UnlockLevelIdList []uint32 // 解锁的等级Id
|
||||
}
|
||||
|
||||
// GCGLevelChallenge 等级挑战信息
|
||||
type GCGLevelChallenge struct {
|
||||
LevelId uint32 `bson:"levelId"` // 等级Id
|
||||
FinishedChallengeIdList []uint32 `bson:"finishedChallengeIdList"` // 完成的挑战Id列表
|
||||
LevelId uint32 // 等级Id
|
||||
FinishedChallengeIdList []uint32 // 完成的挑战Id列表
|
||||
}
|
||||
|
||||
// GCGInfo 七圣召唤信息
|
||||
type GCGInfo struct {
|
||||
// 基础信息
|
||||
Level uint32 `bson:"level"` // 等级
|
||||
Exp uint32 `bson:"exp"` // 经验
|
||||
Level uint32 // 等级
|
||||
Exp uint32 // 经验
|
||||
// 卡牌
|
||||
CardList map[uint32]*GCGCard `bson:"cardList"` // 拥有的卡牌 uint32 -> CardId(卡牌Id)
|
||||
CurDeckId uint32 `bson:"CurDeckId"` // 现行的卡组Id
|
||||
DeckList []*GCGDeck `bson:"deckList"` // 卡组列表
|
||||
UnlockDeckIdList []uint32 `bson:"unlockDeckIdList"` // 解锁的卡组
|
||||
UnlockCardBackIdList []uint32 `bson:"unlockCardBackIdList"` // 解锁的卡背
|
||||
UnlockFieldIdList []uint32 `bson:"unlockFieldIdList"` // 解锁的牌盒
|
||||
CardList map[uint32]*GCGCard // 拥有的卡牌 uint32 -> CardId(卡牌Id)
|
||||
CurDeckId uint32 // 现行的卡组Id
|
||||
DeckList []*GCGDeck // 卡组列表
|
||||
UnlockDeckIdList []uint32 // 解锁的卡组
|
||||
UnlockCardBackIdList []uint32 // 解锁的卡背
|
||||
UnlockFieldIdList []uint32 // 解锁的牌盒
|
||||
// 挑战
|
||||
TavernChallengeMap map[uint32]*GCGTavernChallenge `bson:"tavernChallengeMap"` // 酒馆挑战 uint32 -> CharacterId(角色Id)
|
||||
LevelChallengeMap map[uint32]*GCGLevelChallenge `bson:"levelChallengeMap"` // 等级挑战 uint32 -> LevelId(等级Id)
|
||||
UnlockBossChallengeMap map[uint32]*GCGBossChallenge `bson:"unlockBossChallengeMap"` // 解锁的Boss挑战 uint32 -> Id
|
||||
UnlockWorldChallengeList []uint32 `bson:"unlockWorldChallengeList"` // 解锁的世界挑战
|
||||
TavernChallengeMap map[uint32]*GCGTavernChallenge // 酒馆挑战 uint32 -> CharacterId(角色Id)
|
||||
LevelChallengeMap map[uint32]*GCGLevelChallenge // 等级挑战 uint32 -> LevelId(等级Id)
|
||||
UnlockBossChallengeMap map[uint32]*GCGBossChallenge // 解锁的Boss挑战 uint32 -> Id
|
||||
UnlockWorldChallengeList []uint32 // 解锁的世界挑战
|
||||
// 其他
|
||||
BanCardList []uint32 `bson:"banCardList"` // 被禁止的卡牌列表
|
||||
BanCardList []uint32 // 被禁止的卡牌列表
|
||||
}
|
||||
|
||||
func NewGCGInfo() *GCGInfo {
|
||||
|
||||
Reference in New Issue
Block a user