Initial commit

This commit is contained in:
Naruse
2024-11-07 23:25:15 +08:00
commit e8e5f3a1a7
246 changed files with 27356 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
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
)