This commit is contained in:
aozhiwei 2024-11-25 10:36:44 +08:00
parent b8cf189e8f
commit 64b172ebdb
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package mt
import (
"f5"
"main/mtb"
)
type MapGrid struct {
mtb.MapGrid
}
type MapGridTable struct {
f5.IdMetaTable[MapGrid]
}

View File

@ -98,6 +98,14 @@ type Buff struct {
_flags2_ uint64 _flags2_ uint64
} }
type MapGrid struct {
id int32
reward int32
_flags1_ uint64
_flags2_ uint64
}
type Config struct { type Config struct {
_flags1_ uint64 _flags1_ uint64
@ -424,6 +432,22 @@ func (this *Buff) HasCanStack() bool {
return (this._flags1_ & (uint64(1) << 6)) > 0 return (this._flags1_ & (uint64(1) << 6)) > 0
} }
func (this *MapGrid) GetId() int32 {
return this.id
}
func (this *MapGrid) HasId() bool {
return (this._flags1_ & (uint64(1) << 1)) > 0
}
func (this *MapGrid) GetReward() int32 {
return this.reward
}
func (this *MapGrid) HasReward() bool {
return (this._flags1_ & (uint64(1) << 2)) > 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)
@ -492,5 +516,10 @@ func (this *Buff) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.can_stack, "can_stack", &this._flags1_, 6, kv) f5.ReadMetaTableField(&this.can_stack, "can_stack", &this._flags1_, 6, kv)
} }
func (this *MapGrid) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.id, "id", &this._flags1_, 1, kv)
f5.ReadMetaTableField(&this.reward, "reward", &this._flags1_, 2, kv)
}
func (this *Config) LoadFromKv(kv map[string]interface{}) { func (this *Config) LoadFromKv(kv map[string]interface{}) {
} }

View File

@ -78,6 +78,12 @@ message Buff
optional int32 can_stack = 6; optional int32 can_stack = 6;
} }
message MapGrid
{
optional int32 id = 1;
optional int32 reward = 2;
}
message Config message Config
{ {
} }