1
This commit is contained in:
parent
f182eb33ae
commit
7058327274
@ -106,6 +106,15 @@ type MapGrid struct {
|
|||||||
_flags2_ uint64
|
_flags2_ uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ShopGoods struct {
|
||||||
|
shop_id int32
|
||||||
|
goods_id int32
|
||||||
|
item_id int32
|
||||||
|
|
||||||
|
_flags1_ uint64
|
||||||
|
_flags2_ uint64
|
||||||
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
||||||
_flags1_ uint64
|
_flags1_ uint64
|
||||||
@ -448,6 +457,30 @@ func (this *MapGrid) HasReward() bool {
|
|||||||
return (this._flags1_ & (uint64(1) << 2)) > 0
|
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{}) {
|
func (this *WheelServerCluster) LoadFromKv(kv map[string]interface{}) {
|
||||||
f5.ReadMetaTableField(&this.instance_id, "instance_id", &this._flags1_, 1, kv)
|
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)
|
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{}) {
|
func (this *Config) LoadFromKv(kv map[string]interface{}) {
|
||||||
}
|
}
|
||||||
|
@ -84,6 +84,13 @@ message MapGrid
|
|||||||
optional int32 reward = 2;
|
optional int32 reward = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message ShopGoods
|
||||||
|
{
|
||||||
|
optional int32 shop_id = 1;
|
||||||
|
optional int32 goods_id = 2;
|
||||||
|
optional int32 item_id = 3;
|
||||||
|
}
|
||||||
|
|
||||||
message Config
|
message Config
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user