This commit is contained in:
Naruse
2025-04-15 19:36:05 +08:00
parent dd51fb491d
commit ec8972d5d6
121 changed files with 30598 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import betterproto
from game_server.net.session import PlayerSession
from game_server.resource import ResourceManager
from game_server.resource.configdb.challenge_maze_config import ChallengeMazeConfig
from rail_proto.lib import (
GetChallengeCsReq,
GetChallengeScRsp,
Challenge
)
async def handle(session: PlayerSession, msg: GetChallengeCsReq) -> betterproto.Message:
return GetChallengeScRsp(
retcode=0,
challenge_list=[
Challenge(
challenge_id=challenge.ID
)
for challenge in ResourceManager.instance().values(ChallengeMazeConfig)
]
)