[Packets/GI] Added Packets related to the hangout/coop mechanics

This commit is contained in:
hartie95 2024-04-12 09:38:37 +02:00
parent edf3f310bd
commit df02995a42
36 changed files with 467 additions and 1 deletions

View File

@ -1,7 +1,6 @@
import com.google.devtools.ksp.*
import com.google.devtools.ksp.processing.*
import com.google.devtools.ksp.symbol.*
import org.anime_game_servers.core.base.Version
import java.io.File
import java.io.OutputStream

View File

@ -0,0 +1,12 @@
package data.coop
import org.anime_game_servers.core.base.Version.GI_1_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_1_1_0)
@ProtoCommand(NOTIFY)
internal interface AllCoopInfoNotify {
var mainCoopList: List<MainCoop>
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(REQUEST)
internal interface CancelCoopTaskReq {
var chapterId: Int
}

View File

@ -0,0 +1,13 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(RESPONSE)
internal interface CancelCoopTaskRsp {
var chapterId: Int
var retcode: Int
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.ProtoModel
@AddedIn(GI_1_4_0)
@ProtoModel
internal interface CoopCg {
var id: Int
var isUnlock: Boolean
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(NOTIFY)
internal interface CoopCgShowNotify {
var cgList: List<Int>
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(NOTIFY)
internal interface CoopCgUpdateNotify {
var cgList: List<Int>
}

View File

@ -0,0 +1,20 @@
package data.coop
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.annotations.proto.ProtoModel
@AddedIn(GI_1_4_0)
@ProtoModel
internal interface CoopChapter {
var coopCgList: List<CoopCg>
var coopPointList: List<CoopPoint>
var coopRewardList: List<CoopReward>
var finishDialogList: List<Int>
var finishedEndCount: Int
var id: Int
var lockReasonList: List<Int>
var seenEndingMap: Map<Int, Int>
var state: CoopChapterState
var totalEndCount: Int
}

View File

@ -0,0 +1,14 @@
package data.coop
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.annotations.proto.ProtoEnum
@AddedIn(GI_1_4_0)
@ProtoEnum("CoopChapter", "State")
internal enum class CoopChapterState {
STATE_CLOSE,
STATE_COND_NOT_MEET,
STATE_COND_MEET,
STATE_ACCEPT,
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(NOTIFY)
internal interface CoopChapterUpdateNotify {
var chapterList: List<CoopChapter>
}

View File

@ -0,0 +1,15 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(NOTIFY)
internal interface CoopDataNotify {
var chapterList: List<CoopChapter>
var curCoopPoint: Int
var isHaveProgress: Boolean
var viewedChapterList: List<Int>
}

View File

@ -0,0 +1,13 @@
package data.coop
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.annotations.proto.ProtoModel
@AddedIn(GI_1_4_0)
@ProtoModel
internal interface CoopPoint {
var id: Int
var selfConfidence: Int
var state: CoopPointState
}

View File

@ -0,0 +1,13 @@
package data.coop
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.annotations.proto.ProtoEnum
@AddedIn(GI_1_4_0)
@ProtoEnum("CoopPoint", "State")
internal enum class CoopPointState {
STATE_UNSTARTED,
STATE_STARTED,
STATE_FINISHED,
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(NOTIFY)
internal interface CoopPointUpdateNotify {
var coopPoint: CoopPoint
}

View File

@ -0,0 +1,13 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(NOTIFY)
internal interface CoopProgressUpdateNotify {
var curCoopPoint: Int
var isHaveProgress: Boolean
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.ProtoModel
@AddedIn(GI_1_4_0)
@ProtoModel
internal interface CoopReward {
var id: Int
var state: CoopRewardState
}

View File

@ -0,0 +1,13 @@
package data.coop
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.annotations.proto.ProtoEnum
@AddedIn(GI_1_4_0)
@ProtoEnum("CoopReward", "State")
internal enum class CoopRewardState {
STATE_UNLOCK,
STATE_LOCK,
STATE_TAKEN,
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(NOTIFY)
internal interface CoopRewardUpdateNotify {
var rewardList: List<CoopReward>
}

View File

@ -0,0 +1,13 @@
package data.coop
import org.anime_game_servers.core.base.Version.GI_1_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_1_1_0)
@ProtoCommand(REQUEST)
internal interface FinishMainCoopReq {
var endingSavePointId: Int
var id: Int
}

View File

@ -0,0 +1,14 @@
package data.coop
import org.anime_game_servers.core.base.Version.GI_1_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_1_1_0)
@ProtoCommand(RESPONSE)
internal interface FinishMainCoopRsp {
var endingSavePointId: Int
var id: Int
var retcode: Int
}

View File

@ -0,0 +1,17 @@
package data.coop
import org.anime_game_servers.core.base.Version.GI_1_1_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
@AddedIn(GI_1_1_0)
@ProtoModel
internal interface MainCoop {
var id: Int
var normalVarMap: Map<Int, Int>
var savePointIdList: List<Int>
var seenEndingMap: Map<Int, Int>
var selfConfidence: Int
var status: Status
var tempVarMap: Map<Int, Int>
}

View File

@ -0,0 +1,13 @@
package data.coop
import org.anime_game_servers.core.base.Version.GI_2_5_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_5_0)
@ProtoCommand(NOTIFY)
internal interface MainCoopFailNotify {
var chapterId: Int
var textmapId: String
}

View File

@ -0,0 +1,12 @@
package data.coop
import org.anime_game_servers.core.base.Version.GI_1_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_1_1_0)
@ProtoCommand(NOTIFY)
internal interface MainCoopUpdateNotify {
var mainCoopList: List<MainCoop>
}

View File

@ -0,0 +1,13 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(REQUEST)
internal interface SaveCoopDialogReq {
var dialogId: Int
var mainCoopId: Int
}

View File

@ -0,0 +1,14 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(RESPONSE)
internal interface SaveCoopDialogRsp {
var dialogId: Int
var mainCoopId: Int
var retcode: Int
}

View File

@ -0,0 +1,16 @@
package data.coop
import org.anime_game_servers.core.base.Version.GI_1_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_1_1_0)
@ProtoCommand(REQUEST)
internal interface SaveMainCoopReq {
var id: Int
var normalVarMap: Map<Int, Int>
var savePointId: Int
var selfConfidence: Int
var tempVarMap: Map<Int, Int>
}

View File

@ -0,0 +1,14 @@
package data.coop
import org.anime_game_servers.core.base.Version.GI_1_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_1_1_0)
@ProtoCommand(RESPONSE)
internal interface SaveMainCoopRsp {
var id: Int
var retcode: Int
var savePointIdList: List<Int>
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(REQUEST)
internal interface SetCoopChapterViewedReq {
var chapterId: Int
}

View File

@ -0,0 +1,13 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(RESPONSE)
internal interface SetCoopChapterViewedRsp {
var chapterId: Int
var retcode: Int
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(REQUEST)
internal interface StartCoopPointReq {
var coopPoint: Int
}

View File

@ -0,0 +1,15 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(RESPONSE)
internal interface StartCoopPointRsp {
var coopPoint: Int
var isStart: Boolean
var retcode: Int
var startMainCoop: MainCoop
}

View File

@ -0,0 +1,17 @@
package data.coop
import org.anime_game_servers.core.base.Version.GI_1_1_0
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.annotations.proto.AltName
import org.anime_game_servers.core.base.annotations.proto.ProtoEnum
@AddedIn(GI_1_1_0)
@ProtoEnum("MainCoop")
internal enum class Status {
@AltName("STATUS_INVALID")
INVALID,
@AltName("STATUS_RUNNING")
RUNNING,
@AltName("STATUS_FINISHED")
FINISHED,
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(REQUEST)
internal interface TakeCoopRewardReq {
var rewardConfigId: Int
}

View File

@ -0,0 +1,13 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(RESPONSE)
internal interface TakeCoopRewardRsp {
var retcode: Int
var rewardConfigId: Int
}

View File

@ -0,0 +1,12 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(REQUEST)
internal interface UnlockCoopChapterReq {
var chapterId: Int
}

View File

@ -0,0 +1,13 @@
package data.coop
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.annotations.proto.CommandType.*
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn(GI_1_4_0)
@ProtoCommand(RESPONSE)
internal interface UnlockCoopChapterRsp {
var chapterId: Int
var retcode: Int
}