1
This commit is contained in:
parent
cef24e7a58
commit
6e16128598
@ -41,6 +41,7 @@ type Item struct {
|
|||||||
accelerate_type int32
|
accelerate_type int32
|
||||||
accelerate_price int32
|
accelerate_price int32
|
||||||
price int32
|
price int32
|
||||||
|
buff_list string
|
||||||
|
|
||||||
_flags1_ uint64
|
_flags1_ uint64
|
||||||
_flags2_ uint64
|
_flags2_ uint64
|
||||||
@ -237,6 +238,14 @@ func (this *Item) HasPrice() bool {
|
|||||||
return (this._flags1_ & (uint64(1) << 10)) > 0
|
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 {
|
func (this *Friend) GetId() int32 {
|
||||||
return this.id
|
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_type, "accelerate_type", &this._flags1_, 7, kv)
|
||||||
f5.ReadMetaTableField(&this.accelerate_price, "accelerate_price", &this._flags1_, 8, kv)
|
f5.ReadMetaTableField(&this.accelerate_price, "accelerate_price", &this._flags1_, 8, kv)
|
||||||
f5.ReadMetaTableField(&this.price, "price", &this._flags1_, 10, 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{}) {
|
func (this *Friend) LoadFromKv(kv map[string]interface{}) {
|
||||||
|
@ -34,6 +34,7 @@ message Item
|
|||||||
optional int32 accelerate_type = 7;
|
optional int32 accelerate_type = 7;
|
||||||
optional int32 accelerate_price = 8;
|
optional int32 accelerate_price = 8;
|
||||||
optional int32 price = 10;
|
optional int32 price = 10;
|
||||||
|
optional string buff_list = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Friend
|
message Friend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user