diff --git a/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/login/QueryRegionListHttpRsp.kt b/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/login/QueryRegionListHttpRsp.kt new file mode 100644 index 0000000..7c15bbd --- /dev/null +++ b/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/login/QueryRegionListHttpRsp.kt @@ -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 + @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 +} diff --git a/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/login/RegionCustomConfig.kt b/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/login/RegionCustomConfig.kt new file mode 100644 index 0000000..5564ba1 --- /dev/null +++ b/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/login/RegionCustomConfig.kt @@ -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 +} diff --git a/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/login/RegionSimpleInfo.kt b/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/login/RegionSimpleInfo.kt new file mode 100644 index 0000000..52b0755 --- /dev/null +++ b/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/login/RegionSimpleInfo.kt @@ -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 +} diff --git a/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/packet_head/PacketHead.kt b/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/packet_head/PacketHead.kt new file mode 100644 index 0000000..80d88a5 --- /dev/null +++ b/gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/packet_head/PacketHead.kt @@ -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 + var packetId: Int + var recvTimeMs: Long + var rpcBeginTimeMs: Int + var rpcId: Int + var senderAppId: Int + var serviceAppIdMap: Map + 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 +}