Class OperationContext

java.lang.Object
com.iohao.net.extension.room.operation.OperationContext
All Implemented Interfaces:
DomainEventSource, Eo, Topic, PlayerOperationContext

public class OperationContext extends Object implements PlayerOperationContext, Eo
OperationContext
Since:
21.8
Author:
渔民小镇
date:
2022-03-31
  • Method Details

    • execute

      public void execute()
      Executes the player's gameplay operation, including verification and processing.
    • of

      public static OperationContext of(Room room, OperationHandler operationHandler)
      Creates an OperationContext object
      Parameters:
      room - Room
      operationHandler - Gameplay operation business interface
      Returns:
      OperationContext Gameplay operation context