[GI/Proto] Added the missing QueryRegionListHttpRsp and PacketHead defintions

This commit is contained in:
hartie95 2024-10-14 20:17:57 +02:00
parent 26da611fe4
commit 6418ff5d4b
4 changed files with 116 additions and 0 deletions

View File

@ -0,0 +1,27 @@
package org.anime_game_servers.multi_proto.gi.data.login
import org.anime_game_servers.core.base.Version.GI_0_9_0
import org.anime_game_servers.core.base.Version.GI_1_0_0
import org.anime_game_servers.core.base.Version.GI_CB1
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.RemovedIn
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
import org.anime_game_servers.multi_proto.gi.data.general.Retcode
@AddedIn(GI_CB1)
@ProtoModel
internal interface QueryRegionListHttpRsp {
var retcode: Retcode
@RemovedIn(GI_1_0_0)
var clientCustomConfig: String
var regionList: List<RegionSimpleInfo>
@AddedIn(GI_0_9_0)
@RemovedIn(GI_1_0_0)
var clientConfig: ClientCustomConfig
@AddedIn(GI_0_9_0)
var clientCustomConfigEncrypted: ByteArray
@AddedIn(GI_0_9_0)
var clientSecretKey: ByteArray
@AddedIn(GI_0_9_0)
var enableLoginPc: Boolean
}

View File

@ -0,0 +1,23 @@
package org.anime_game_servers.multi_proto.gi.data.login
import org.anime_game_servers.core.base.Version.GI_0_9_0
import org.anime_game_servers.core.base.Version.GI_1_0_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.RemovedIn
import org.anime_game_servers.core.base.annotations.proto.AltName
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
@AddedIn(GI_0_9_0)
@RemovedIn(GI_1_0_0)
@ProtoModel
internal interface RegionCustomConfig {
@AltName("antidebugPc")
var antiDebugPc: Boolean
@AltName("antidubugAndrod")
var antiDebugAndroid: Boolean
@AltName("antidubugIos")
var antiDebugIos: Boolean
@AltName("closeAntidebug")
var closeAntiDebug: Boolean
var forceKill: Boolean
}

View File

@ -0,0 +1,20 @@
package org.anime_game_servers.multi_proto.gi.data.login
import org.anime_game_servers.core.base.Version.GI_0_9_0
import org.anime_game_servers.core.base.Version.GI_1_0_0
import org.anime_game_servers.core.base.Version.GI_CB1
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.RemovedIn
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
@AddedIn(GI_CB1)
@ProtoModel
internal interface RegionSimpleInfo {
var dispatchUrl: String
var name: String
var title: String
var type: String
@AddedIn(GI_0_9_0)
@RemovedIn(GI_1_0_0)
var regionCustomConfig: RegionCustomConfig
}

View File

@ -0,0 +1,46 @@
package org.anime_game_servers.multi_proto.gi.data.packet_head
import org.anime_game_servers.core.base.Version.GI_CB2
import org.anime_game_servers.core.base.Version.GI_0_9_0
import org.anime_game_servers.core.base.Version.GI_1_0_0
import org.anime_game_servers.core.base.Version.GI_1_1_0
import org.anime_game_servers.core.base.Version.GI_1_5_0
import org.anime_game_servers.core.base.Version.GI_3_4_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
@AddedIn(GI_CB2)
@ProtoModel
internal interface PacketHead {
var clientSequenceId: Int
var enetChannelId: Int
var enetIsReliable: Int
var extMap: Map<Int, Int>
var packetId: Int
var recvTimeMs: Long
var rpcBeginTimeMs: Int
var rpcId: Int
var senderAppId: Int
var serviceAppIdMap: Map<Int, Int>
var sourceService: Int
var targetService: Int
var userId: Int
var userIp: Int
var userSessionId: Int
@AddedIn(GI_0_9_0)
var gameThreadIndex: Int
@AddedIn(GI_0_9_0)
var isSetGameThread: Boolean
@AddedIn(GI_0_9_0)
var sentMs: Long
@AddedIn(GI_1_0_0)
var senderLoad: Int
@AddedIn(GI_1_1_0)
var spanContextStr: ByteArray
@AddedIn(GI_1_5_0)
var homeUserId: Int
@AddedIn(GI_3_4_0)
var isSetMultiThread: Boolean
@AddedIn(GI_3_4_0)
var multiThreadIndex: Int
}