Procházet zdrojové kódy

新增积分裂变配置

kevin před 8 měsíci
rodič
revize
b85b475fe2

binární
mhaya-config/Excel/LogicConfig/lua_成就任务表.xlsx


+ 4 - 0
mhaya-config/Excel/TestServer/Parser/ChannelConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type ChannelConfig struct {
 	maps map[int]*ChannelConfigRow
 }
@@ -17,10 +18,12 @@ type ChannelConfigRow struct {
 	Enable int    // 是否开启(0否1是)
 }
 
+
 func (p *ChannelConfig) Name() string {
 	return "ChannelConfig"
 }
 
+
 func (p *ChannelConfig) Init() {
 	p.maps = make(map[int]*ChannelConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *ChannelConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/PlatformConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type PlatformConfig struct {
 	maps map[int]*PlatformConfigRow
 }
@@ -17,10 +18,12 @@ type PlatformConfigRow struct {
 	Enable int    // 是否开启(0否1是)
 }
 
+
 func (p *PlatformConfig) Name() string {
 	return "PlatformConfig"
 }
 
+
 func (p *PlatformConfig) Init() {
 	p.maps = make(map[int]*PlatformConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *PlatformConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/RuleConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type RuleConfig struct {
 	maps map[int]*RuleConfigRow
 }
@@ -17,10 +18,12 @@ type RuleConfigRow struct {
 	MaxTime int // 过期时间(按天)
 }
 
+
 func (p *RuleConfig) Name() string {
 	return "RuleConfig"
 }
 
+
 func (p *RuleConfig) Init() {
 	p.maps = make(map[int]*RuleConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *RuleConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 22 - 21
mhaya-config/Excel/TestServer/Parser/TypeDefine.go

@@ -23,9 +23,9 @@ const (
 type EnumRelationShip int8
 
 const (
-	Friends EnumRelationShip = 0 //
-	Enemy   EnumRelationShip = 1 //
-	Unknown EnumRelationShip = 2 //
+	Friends EnumRelationShip = 0 // 
+	Enemy   EnumRelationShip = 1 // 
+	Unknown EnumRelationShip = 2 // 
 )
 
 type HonorType int8
@@ -45,13 +45,13 @@ const (
 
 // custom types
 type ABAsset struct {
-	Ab     string //
-	Prefab string //
+	Ab     string // 
+	Prefab string // 
 }
 
 type AreaDoorData struct {
 	Width  float32 // 存储一个建造区域里门的位置、宽、高信息
-	Height float32 //
+	Height float32 // 
 }
 
 type ItemDiscountWeight struct {
@@ -74,7 +74,7 @@ type ItemRewardWeight struct {
 
 type RangeInt32 struct {
 	Min int // 描述一个值的范围
-	Max int //
+	Max int // 
 }
 
 type RectRange struct {
@@ -83,9 +83,9 @@ type RectRange struct {
 }
 
 type RoleConfig struct {
-	Names []string //
-	Model ABAsset  //
-	Icon  ABAsset  //
+	Names []string // 
+	Model ABAsset  // 
+	Icon  ABAsset  // 
 }
 
 type S3Param struct {
@@ -114,21 +114,21 @@ type StoreItemWeight struct {
 }
 
 type TileArea struct {
-	Rect TileAreaRange //
-	Add  []TilePos     //
-	Sub  []TilePos     //
+	Rect TileAreaRange // 
+	Add  []TilePos     // 
+	Sub  []TilePos     // 
 }
 
 type TileAreaRange struct {
-	XMin int //
-	XMax int //
-	YMin int //
-	YMax int //
+	XMin int // 
+	XMax int // 
+	YMin int // 
+	YMax int // 
 }
 
 type TilePos struct {
-	X int //
-	Y int //
+	X int // 
+	Y int // 
 }
 
 type UnlockCondition struct {
@@ -138,10 +138,11 @@ type UnlockCondition struct {
 
 type ValueRange struct {
 	Key       string     // 描述一个key对应value的范围
-	VaueRange RangeInt32 //
+	VaueRange RangeInt32 // 
 }
 
 type Vector2 struct {
 	X int // 存储一个二维空间的坐标
-	Y int //
+	Y int // 
 }
+

+ 6 - 1
mhaya-config/Excel/TestServer/Parser/achieveTaskConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type achieveTaskConfig struct {
 	maps map[int]*achieveTaskConfigRow
 }
@@ -14,17 +15,20 @@ type achieveTaskConfig struct {
 type achieveTaskConfigRow struct {
 	ID        int          // #任务ID
 	Enable    int          // 是否开启(0否1是)
-	Type      int          // 任务类型(1基本类型2邀请好友相关)
+	Type      int          // 任务类型(1基本类型2邀请好友相关,3周期任务)
 	Condition RangeInt32   // 完成条件
 	Reward    []ItemReward // 奖励
 	Url       string       // 链接
 	Order     int          // 排序
+	Icon      string       // Icon地址
 }
 
+
 func (p *achieveTaskConfig) Name() string {
 	return "achieveTaskConfig"
 }
 
+
 func (p *achieveTaskConfig) Init() {
 	p.maps = make(map[int]*achieveTaskConfigRow)
 }
@@ -64,3 +68,4 @@ func (p *achieveTaskConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/dailyTaskConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type dailyTaskConfig struct {
 	maps map[int]*dailyTaskConfigRow
 }
@@ -19,10 +20,12 @@ type dailyTaskConfigRow struct {
 	Reward    []ItemReward // 奖励
 }
 
+
 func (p *dailyTaskConfig) Name() string {
 	return "dailyTaskConfig"
 }
 
+
 func (p *dailyTaskConfig) Init() {
 	p.maps = make(map[int]*dailyTaskConfigRow)
 }
@@ -62,3 +65,4 @@ func (p *dailyTaskConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/discreteRuleConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type discreteRuleConfig struct {
 	maps map[int]*discreteRuleConfigRow
 }
@@ -17,10 +18,12 @@ type discreteRuleConfigRow struct {
 	Condition string       // 条件
 }
 
+
 func (p *discreteRuleConfig) Name() string {
 	return "discreteRuleConfig"
 }
 
+
 func (p *discreteRuleConfig) Init() {
 	p.maps = make(map[int]*discreteRuleConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *discreteRuleConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/drawConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type drawConfig struct {
 	maps map[int]*drawConfigRow
 }
@@ -23,10 +24,12 @@ type drawConfigRow struct {
 	PersonTotalCondition int          // 个人最多中奖次数条件
 }
 
+
 func (p *drawConfig) Name() string {
 	return "drawConfig"
 }
 
+
 func (p *drawConfig) Init() {
 	p.maps = make(map[int]*drawConfigRow)
 }
@@ -66,3 +69,4 @@ func (p *drawConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/itemConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type itemConfig struct {
 	maps map[int]*itemConfigRow
 }
@@ -17,10 +18,12 @@ type itemConfigRow struct {
 	ItemKey string // 键名
 }
 
+
 func (p *itemConfig) Name() string {
 	return "itemConfig"
 }
 
+
 func (p *itemConfig) Init() {
 	p.maps = make(map[int]*itemConfigRow)
 }
@@ -60,3 +63,4 @@ func (p *itemConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/levelConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type levelConfig struct {
 	maps map[int]*levelConfigRow
 }
@@ -23,10 +24,12 @@ type levelConfigRow struct {
 	Rule4     int // 规则4豹子111/666
 }
 
+
 func (p *levelConfig) Name() string {
 	return "levelConfig"
 }
 
+
 func (p *levelConfig) Init() {
 	p.maps = make(map[int]*levelConfigRow)
 }
@@ -66,3 +69,4 @@ func (p *levelConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/rankConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type rankConfig struct {
 	maps map[int]*rankConfigRow
 }
@@ -24,10 +25,12 @@ type rankConfigRow struct {
 	ShowTime  string       // 展示时间(如2024-01-01 00:00:00)
 }
 
+
 func (p *rankConfig) Name() string {
 	return "rankConfig"
 }
 
+
 func (p *rankConfig) Init() {
 	p.maps = make(map[int]*rankConfigRow)
 }
@@ -67,3 +70,4 @@ func (p *rankConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/rankRewardConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type rankRewardConfig struct {
 	maps map[int]*rankRewardConfigRow
 }
@@ -18,10 +19,12 @@ type rankRewardConfigRow struct {
 	Reward []ItemReward // 奖励
 }
 
+
 func (p *rankRewardConfig) Name() string {
 	return "rankRewardConfig"
 }
 
+
 func (p *rankRewardConfig) Init() {
 	p.maps = make(map[int]*rankRewardConfigRow)
 }
@@ -61,3 +64,4 @@ func (p *rankRewardConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/sdkConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type sdkConfig struct {
 	maps map[int]*sdkConfigRow
 }
@@ -20,10 +21,12 @@ type sdkConfigRow struct {
 	Desc         string   // 描述信息
 }
 
+
 func (p *sdkConfig) Name() string {
 	return "sdkConfig"
 }
 
+
 func (p *sdkConfig) Init() {
 	p.maps = make(map[int]*sdkConfigRow)
 }
@@ -63,3 +66,4 @@ func (p *sdkConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+

+ 4 - 0
mhaya-config/Excel/TestServer/Parser/weeklySignInConfig.go

@@ -7,6 +7,7 @@ import (
 	mhayaLogger "github.com/mhaya/logger"
 )
 
+
 type weeklySignInConfig struct {
 	maps map[int]*weeklySignInConfigRow
 }
@@ -16,10 +17,12 @@ type weeklySignInConfigRow struct {
 	Reward []ItemReward // 奖励
 }
 
+
 func (p *weeklySignInConfig) Name() string {
 	return "weeklySignInConfig"
 }
 
+
 func (p *weeklySignInConfig) Init() {
 	p.maps = make(map[int]*weeklySignInConfigRow)
 }
@@ -59,3 +62,4 @@ func (p *weeklySignInConfig) Contain(pk int) bool {
 	_, found := p.Get(pk)
 	return found
 }
+