update excel

This commit is contained in:
sk 2024-07-18 14:39:01 +08:00
parent 25618c0289
commit 5e8c7f2ca0
7 changed files with 1725 additions and 1996 deletions

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -361,26 +361,6 @@ message DB_CreateroomArray {
repeated DB_Createroom Arr = 1;
}
message DB_DiamondLottery {
int32 Id = 1;
int32 Type = 2;
string Name = 3;
int32 Item_Id = 4;
int32 Grade = 5;
int32 Oddrate = 6;
}
message DB_DiamondLotteryArray {
repeated DB_DiamondLottery Arr = 1;
}
message DB_Fish {
int32 Id = 1;

2
public

@ -1 +1 @@
Subproject commit 3d5fc5c6e4eeb3b8008ff098751c1bd6b211793c
Subproject commit ddda8276651cda84843a64458a7a3edd6835d6e6

View File

@ -1,77 +0,0 @@
// Code generated by xlsx2proto.
// DO NOT EDIT!
package srvdata
import (
"google.golang.org/protobuf/proto"
"mongo.games.com/game/protocol/server"
)
var PBDB_DiamondLotteryMgr = &DB_DiamondLotteryMgr{
Datas: &server.DB_DiamondLotteryArray{},
pool: make(map[int32]*server.DB_DiamondLottery),
}
type DB_DiamondLotteryMgr struct {
Datas *server.DB_DiamondLotteryArray
pool map[int32]*server.DB_DiamondLottery
}
func (this *DB_DiamondLotteryMgr) unmarshal(data []byte) error {
err := proto.Unmarshal(data, this.Datas)
if err == nil {
this.arrangeData()
}
return err
}
func (this *DB_DiamondLotteryMgr) reunmarshal(data []byte) error {
newDatas := &server.DB_DiamondLotteryArray{}
err := proto.Unmarshal(data, newDatas)
if err == nil {
for _, item := range newDatas.Arr {
existItem := this.GetData(item.GetId())
if existItem == nil {
this.pool[item.GetId()] = item
this.Datas.Arr = append(this.Datas.Arr, item)
} else {
*existItem = *item
}
}
}
return err
}
func (this *DB_DiamondLotteryMgr) arrangeData() {
if this.Datas == nil {
return
}
dataArr := this.Datas.GetArr()
if dataArr == nil {
return
}
for _, data := range dataArr {
this.pool[data.GetId()] = data
}
}
func (this *DB_DiamondLotteryMgr) GetData(id int32) *server.DB_DiamondLottery {
if data, ok := this.pool[id]; ok {
return data
}
return nil
}
func init() {
DataMgr.register("DB_DiamondLottery.dat", &ProtobufDataLoader{dh: PBDB_DiamondLotteryMgr})
}

Binary file not shown.