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,22 @@
import betterproto
from game_server.net.session import Session
from game_server.resource import ResourceManager
from game_server.resource.configdb.theme_data_avatar import ThemeDataAvatar
from lib.proto import (
GetThemeDataReq,
GetThemeDataRsp,
ThemeData
)
async def handle(session: Session, msg: GetThemeDataReq) -> betterproto.Message:
return GetThemeDataRsp(
retcode=0,
theme_list=[
ThemeData(
begin_time=1583373600,
end_time=2080843200,
theme_id=theme.AvatarData
)
for theme in ResourceManager.instance().values(ThemeDataAvatar)
]
)