Class OperationContext
java.lang.Object
com.iohao.net.extension.room.operation.OperationContext
- All Implemented Interfaces:
DomainEventSource, Eo, Topic, PlayerOperationContext
OperationContext
- Since:
- 21.8
- Author:
- 渔民小镇
- date:
- 2022-03-31
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the player's gameplay operation, including verification and processing.static OperationContextof(Room room, OperationHandler operationHandler) Creates an OperationContext objectMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DomainEventSource
getSourceMethods inherited from interface PlayerOperationContext
getCommand, getFlowContext, getPlayer, getRoom, getRoomId, getUserId
-
Method Details
-
execute
public void execute()Executes the player's gameplay operation, including verification and processing. -
of
Creates an OperationContext object- Parameters:
room- RoomoperationHandler- Gameplay operation business interface- Returns:
- OperationContext Gameplay operation context
-