mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 14:54:38 +01:00
Initial commit
This commit is contained in:
22
game_server/packet/handlers/GeneralActivityGetMainInfoReq.py
Normal file
22
game_server/packet/handlers/GeneralActivityGetMainInfoReq.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import betterproto
|
||||
from game_server.net.session import Session
|
||||
from lib.proto import (
|
||||
GeneralActivityGetMainInfoReq,
|
||||
GeneralActivityGetMainInfoRsp,
|
||||
GeneralActivity,
|
||||
GeneralActivityBasicInfo
|
||||
)
|
||||
|
||||
async def handle(session: Session, msg: GeneralActivityGetMainInfoReq) -> betterproto.Message:
|
||||
return GeneralActivityGetMainInfoRsp(
|
||||
retcode=0,
|
||||
activity_list=[
|
||||
GeneralActivity(
|
||||
general_basic_info=GeneralActivityBasicInfo(
|
||||
activity_id=50000001,
|
||||
schedule_id=412,
|
||||
series_activity_id=[50000001]
|
||||
)
|
||||
)
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user