Skip to content

有个疑问,博主。 #2

@zjqwll

Description

@zjqwll

博主为啥自己写以下接口
void inRoom(UserInCache user);
void outRoom(long userId);
void startGame();
void exitThisRound(long userId);
void addCost(long userId, int cost);
void openThisRound(long userId);
而不用自带的
joinRoom() 加入到指定房间。
leaveRoom() 从指定房间离开。
getSessionId()方法,返回由UUID生成的唯一标识。
getAllRooms() 返回当前客户端所在的room名称列表。
sendEvent(eventname,data) 向当前客户端发送事件。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions