Interface OperationService


public interface OperationService
Gameplay operation related service. Get user's gameplay operations, all gameplay operations, and the gameplay operation factory.
Since:
21.8
Author:
渔民小镇
date:
2024-05-12
  • Method Details

    • getOperationFactory

      OperationFactory getOperationFactory()
      Returns:
      Gameplay operation factory
    • getOperationHandler

      default OperationHandler getOperationHandler(int operation)
      Get OperationHandler (Gameplay Operation Business Class)
      Parameters:
      operation - Operation code
      Returns:
      Business logic handler corresponding to the operation code
    • getUserOperationHandler

      default OperationHandler getUserOperationHandler(int operation)
      Get OperationHandler that the user can operate (Gameplay Operation Business Class)
      Parameters:
      operation - Operation code
      Returns:
      Gameplay Operation Business Class
    • getOperationHandler

      default OperationHandler getOperationHandler(OperationCode operationCode)
    • getUserOperationHandler

      default OperationHandler getUserOperationHandler(OperationCode operationCode)