1
This commit is contained in:
parent
b8cf189e8f
commit
64b172ebdb
14
server/wheelserver/mt/MapGrid.go
Normal file
14
server/wheelserver/mt/MapGrid.go
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package mt
|
||||||
|
|
||||||
|
import (
|
||||||
|
"f5"
|
||||||
|
"main/mtb"
|
||||||
|
)
|
||||||
|
|
||||||
|
type MapGrid struct {
|
||||||
|
mtb.MapGrid
|
||||||
|
}
|
||||||
|
|
||||||
|
type MapGridTable struct {
|
||||||
|
f5.IdMetaTable[MapGrid]
|
||||||
|
}
|
@ -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{}) {
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user