This commit is contained in:
aozhiwei 2024-07-11 19:31:38 +08:00
parent 210fcb9ff1
commit dbd827d353
2 changed files with 11 additions and 0 deletions

View File

@ -28,6 +28,7 @@ type Config struct {
game_start_notify_time int32
delay_delete_time int32
friendapi_url string
match_real_player int32
_flags1_ uint64
_flags2_ uint64
@ -130,6 +131,14 @@ func (this *Config) HasFriendapiUrl() bool {
return (this._flags1_ & (uint64(1) << 5)) > 0
}
func (this *Config) GetMatchRealPlayer() int32 {
return this.match_real_player
}
func (this *Config) HasMatchRealPlayer() bool {
return (this._flags1_ & (uint64(1) << 6)) > 0
}
func (this *Robot) GetId() int32 {
return this.id
}
@ -173,6 +182,7 @@ func (this *Config) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.game_start_notify_time, "game_start_notify_time", &this._flags1_, 3, kv)
f5.ReadMetaTableField(&this.delay_delete_time, "delay_delete_time", &this._flags1_, 4, kv)
f5.ReadMetaTableField(&this.friendapi_url, "friendapi_url", &this._flags1_, 5, kv)
f5.ReadMetaTableField(&this.match_real_player, "match_real_player", &this._flags1_, 6, kv)
}
func (this *Robot) LoadFromKv(kv map[string]interface{}) {

View File

@ -23,6 +23,7 @@ message Config
optional int32 game_start_notify_time = 3;
optional int32 delay_delete_time = 4;
optional string friendapi_url = 5;
optional int32 match_real_player = 6;
}
message Robot