mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-14 05:44:34 +01:00
12 lines
346 B
Python
12 lines
346 B
Python
import betterproto
|
|
from game_server.net.session import Session
|
|
from lib.proto import SyncTimeReq,SyncTimeRsp
|
|
from game_server.utils import get_unix_in_seconds
|
|
|
|
async def handle(session: Session, msg: SyncTimeReq) -> betterproto.Message:
|
|
return SyncTimeRsp(
|
|
retcode=0,
|
|
cur_time=get_unix_in_seconds(),
|
|
seq=msg.seq
|
|
)
|