Interface PlayerOperationContext
- All Known Implementing Classes:
OperationContext
public interface PlayerOperationContext
Context - Interface for Player Gameplay Operation Context
- Since:
- 21.8
- Author:
- 渔民小镇
- See Also:
- date:
- 2022-03-31
-
Method Details
-
getRoom
-
getCommand
<T> T getCommand()get command data. The data required for specific gameplay operations, usually customized by developers according to the game business- Type Parameters:
T- t- Returns:
- operation data
-
getFlowContext
-
getUserId
default long getUserId()get the userId of the current operating player- Returns:
- userId
-
getPlayer
get the current operating player- Type Parameters:
T- Player- Returns:
- the current operating player
-
getRoomId
default long getRoomId()get room id- Returns:
- room id
-