[GI/Proto] Added some missing packets to some groups, refactored some packets and fixed HostPlayerNotify being there twice

This commit is contained in:
hartie95 2024-08-05 15:54:31 +02:00
parent b172192e0a
commit 85956a5203
12 changed files with 134 additions and 20 deletions

View File

@ -0,0 +1,13 @@
package org.anime_game_servers.multi_proto.gi.data.activity.user_generated_content
import org.anime_game_servers.core.base.Version.GI_2_7_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_2_7_0)
@ProtoCommand(REQUEST)
internal interface PublishUgcReq {
var ugcGuid: Long
var ugcType: UgcType
}

View File

@ -0,0 +1,14 @@
package org.anime_game_servers.multi_proto.gi.data.activity.user_generated_content
import org.anime_game_servers.core.base.Version.GI_2_7_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_2_7_0)
@ProtoCommand(RESPONSE)
internal interface PublishUgcRsp {
var retcode: Int
var ugcGuid: Long
var ugcType: UgcType
}

View File

@ -1,15 +1,14 @@
package org.anime_game_servers.multi_proto.gi.data.gallery
import org.anime_game_servers.multi_proto.gi.data.scene.entity.OnlinePlayerInfo
import org.anime_game_servers.core.base.Version.GI_1_4_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.Version
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
@AddedIn(Version.GI_1_4_0)
@AddedIn(GI_1_4_0)
@ProtoModel
internal interface BalloonPlayerInfo {
var uid: Int
var combo: Int
var comboDisableTime: Int
var curScore: Int
var uid: Int
}

View File

@ -1,16 +1,16 @@
package org.anime_game_servers.multi_proto.gi.data.gallery
import org.anime_game_servers.multi_proto.gi.data.scene.entity.OnlinePlayerInfo
import org.anime_game_servers.core.base.Version.GI_1_4_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.Version
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
@AddedIn(Version.GI_1_4_0)
@AddedIn(GI_1_4_0)
@ProtoModel
internal interface BalloonSettleInfo {
var uid: Int
var shootCount: Int
var maxCombo: Int
var finalScore: Int
var maxCombo: Int
var playerInfo: OnlinePlayerInfo
var shootCount: Int
var uid: Int
}

View File

@ -0,0 +1,15 @@
package org.anime_game_servers.multi_proto.gi.data.npc
import org.anime_game_servers.core.base.Version.GI_CB1
import org.anime_game_servers.core.base.Version.GI_CB2
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)
@RemovedIn(GI_CB2)
@ProtoModel
internal interface NpcTalkInfo {
var entityId: Int
var talkIdList: List<Int>
}

View File

@ -0,0 +1,18 @@
package org.anime_game_servers.multi_proto.gi.data.npc
import org.anime_game_servers.core.base.Version.GI_2_4_0
import org.anime_game_servers.core.base.Version.GI_CB1
import org.anime_game_servers.core.base.Version.GI_CB2
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.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_CB1)
@ProtoCommand(NOTIFY)
internal interface NpcTalkStateNotify {
@RemovedIn(GI_CB2)
var talkInfoList: List<NpcTalkInfo>
@AddedIn(GI_2_4_0)
var isBan: Boolean
}

View File

@ -0,0 +1,12 @@
package org.anime_game_servers.multi_proto.gi.data.scene.group_link
import org.anime_game_servers.core.base.Version.GI_2_1_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_2_1_0)
@ProtoCommand(NOTIFY)
internal interface GroupLinkAllNotify {
var bundleList: List<GroupLinkBundle>
}

View File

@ -0,0 +1,19 @@
package org.anime_game_servers.multi_proto.gi.data.scene.group_link
import org.anime_game_servers.core.base.Version.GI_2_1_0
import org.anime_game_servers.core.base.Version.GI_2_4_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
import org.anime_game_servers.multi_proto.gi.data.general.Vector
@AddedIn(GI_2_1_0)
@ProtoModel
internal interface GroupLinkBundle {
var bundleId: Int
var center: Vector
var isActivated: Boolean
var radius: Int
var sceneId: Int
@AddedIn(GI_2_4_0)
var isShowMark: Boolean
}

View File

@ -0,0 +1,13 @@
package org.anime_game_servers.multi_proto.gi.data.scene.group_link
import org.anime_game_servers.core.base.Version.GI_2_1_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
import org.anime_game_servers.multi_proto.gi.data.scene.group_link.GroupLinkBundle
@AddedIn(GI_2_1_0)
@ProtoCommand(NOTIFY)
internal interface GroupLinkChangeNotify {
var bundle: GroupLinkBundle
}

View File

@ -1,13 +1,12 @@
package org.anime_game_servers.multi_proto.gi.data.battle
package org.anime_game_servers.multi_proto.gi.data.scene.group_link
import org.anime_game_servers.core.base.Version.GI_CB1
import org.anime_game_servers.core.base.Version.GI_2_1_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_CB1)
@AddedIn(GI_2_1_0)
@ProtoCommand(NOTIFY)
internal interface HostPlayerNotify {
var hostPeerId: Int
var hostUid: Int
internal interface GroupLinkDeleteNotify {
var bundleId: Int
}

View File

@ -0,0 +1,13 @@
package org.anime_game_servers.multi_proto.gi.data.scene.group_link
import org.anime_game_servers.core.base.Version.GI_2_4_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
import org.anime_game_servers.multi_proto.gi.data.scene.group_link.GroupLinkBundle
@AddedIn(GI_2_4_0)
@ProtoCommand(NOTIFY)
internal interface GroupLinkMarkUpdateNotify {
var bundle: GroupLinkBundle
}

View File

@ -1,13 +1,12 @@
package org.anime_game_servers.multi_proto.gi.data.world
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.Version
import org.anime_game_servers.core.base.annotations.proto.CommandType
import org.anime_game_servers.core.base.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(Version.GI_CB1)
@ProtoCommand(CommandType.NOTIFY)
@AddedIn(GI_CB1)
@ProtoCommand(NOTIFY)
internal interface HostPlayerNotify {
var hostPeerId: Int
var hostUid: Int