From 70583272747788db761c620e47351fc83fc0f452 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 25 Nov 2024 11:19:43 +0800 Subject: [PATCH] 1 --- server/wheelserver/mtb/mtb.auto_gen.go | 39 ++++++++++++++++++++++++++ server/wheelserver/proto/mt.proto | 7 +++++ 2 files changed, 46 insertions(+) diff --git a/server/wheelserver/mtb/mtb.auto_gen.go b/server/wheelserver/mtb/mtb.auto_gen.go index ba26d674..be7d7858 100644 --- a/server/wheelserver/mtb/mtb.auto_gen.go +++ b/server/wheelserver/mtb/mtb.auto_gen.go @@ -106,6 +106,15 @@ type MapGrid struct { _flags2_ uint64 } +type ShopGoods struct { + shop_id int32 + goods_id int32 + item_id int32 + + _flags1_ uint64 + _flags2_ uint64 +} + type Config struct { _flags1_ uint64 @@ -448,6 +457,30 @@ func (this *MapGrid) HasReward() bool { return (this._flags1_ & (uint64(1) << 2)) > 0 } +func (this *ShopGoods) GetShopId() int32 { + return this.shop_id +} + +func (this *ShopGoods) HasShopId() bool { + return (this._flags1_ & (uint64(1) << 1)) > 0 +} + +func (this *ShopGoods) GetGoodsId() int32 { + return this.goods_id +} + +func (this *ShopGoods) HasGoodsId() bool { + return (this._flags1_ & (uint64(1) << 2)) > 0 +} + +func (this *ShopGoods) GetItemId() int32 { + return this.item_id +} + +func (this *ShopGoods) HasItemId() bool { + return (this._flags1_ & (uint64(1) << 3)) > 0 +} + func (this *WheelServerCluster) LoadFromKv(kv map[string]interface{}) { f5.ReadMetaTableField(&this.instance_id, "instance_id", &this._flags1_, 1, kv) @@ -521,5 +554,11 @@ func (this *MapGrid) LoadFromKv(kv map[string]interface{}) { f5.ReadMetaTableField(&this.reward, "reward", &this._flags1_, 2, kv) } +func (this *ShopGoods) LoadFromKv(kv map[string]interface{}) { + f5.ReadMetaTableField(&this.shop_id, "shop_id", &this._flags1_, 1, kv) + f5.ReadMetaTableField(&this.goods_id, "goods_id", &this._flags1_, 2, kv) + f5.ReadMetaTableField(&this.item_id, "item_id", &this._flags1_, 3, kv) +} + func (this *Config) LoadFromKv(kv map[string]interface{}) { } diff --git a/server/wheelserver/proto/mt.proto b/server/wheelserver/proto/mt.proto index 1687341d..46e2dad3 100644 --- a/server/wheelserver/proto/mt.proto +++ b/server/wheelserver/proto/mt.proto @@ -84,6 +84,13 @@ message MapGrid optional int32 reward = 2; } +message ShopGoods +{ + optional int32 shop_id = 1; + optional int32 goods_id = 2; + optional int32 item_id = 3; +} + message Config { }