This commit is contained in:
aozhiwei 2024-11-22 13:16:37 +08:00
parent cef24e7a58
commit 6e16128598
2 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,7 @@ type Item struct {
accelerate_type int32
accelerate_price int32
price int32
buff_list string
_flags1_ uint64
_flags2_ uint64
@ -237,6 +238,14 @@ func (this *Item) HasPrice() bool {
return (this._flags1_ & (uint64(1) << 10)) > 0
}
func (this *Item) GetBuffList() string {
return this.buff_list
}
func (this *Item) HasBuffList() bool {
return (this._flags1_ & (uint64(1) << 11)) > 0
}
func (this *Friend) GetId() int32 {
return this.id
}
@ -402,6 +411,7 @@ func (this *Item) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.accelerate_type, "accelerate_type", &this._flags1_, 7, kv)
f5.ReadMetaTableField(&this.accelerate_price, "accelerate_price", &this._flags1_, 8, kv)
f5.ReadMetaTableField(&this.price, "price", &this._flags1_, 10, kv)
f5.ReadMetaTableField(&this.buff_list, "buff_list", &this._flags1_, 11, kv)
}
func (this *Friend) LoadFromKv(kv map[string]interface{}) {

View File

@ -34,6 +34,7 @@ message Item
optional int32 accelerate_type = 7;
optional int32 accelerate_price = 8;
optional int32 price = 10;
optional string buff_list = 11;
}
message Friend