init
This commit is contained in:
14
game_server/handlers/SelectChatBubbleCsReq.py
Normal file
14
game_server/handlers/SelectChatBubbleCsReq.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import betterproto
|
||||
from game_server.net.session import PlayerSession
|
||||
from rail_proto.lib import (
|
||||
SelectChatBubbleCsReq,
|
||||
SelectChatBubbleScRsp
|
||||
)
|
||||
|
||||
async def handle(session: PlayerSession, msg: SelectChatBubbleCsReq) -> betterproto.Message:
|
||||
session.player.data.chat_bubble = msg.bubble_id
|
||||
#session.player.data.save_player_data()
|
||||
return SelectChatBubbleScRsp(
|
||||
retcode=0,
|
||||
cur_chat_bubble=msg.bubble_id
|
||||
)
|
||||
Reference in New Issue
Block a user