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 Summary
Modifier and TypeMethodDescriptiondefault OperationHandlergetOperationHandler(int operation) Get OperationHandler (Gameplay Operation Business Class)default OperationHandlergetOperationHandler(OperationCode operationCode) default OperationHandlergetUserOperationHandler(int operation) Get OperationHandler that the user can operate (Gameplay Operation Business Class)default OperationHandlergetUserOperationHandler(OperationCode operationCode)
-
Method Details
-
getOperationFactory
OperationFactory getOperationFactory()- Returns:
- Gameplay operation factory
-
getOperationHandler
Get OperationHandler (Gameplay Operation Business Class)- Parameters:
operation- Operation code- Returns:
- Business logic handler corresponding to the operation code
-
getUserOperationHandler
Get OperationHandler that the user can operate (Gameplay Operation Business Class)- Parameters:
operation- Operation code- Returns:
- Gameplay Operation Business Class
-
getOperationHandler
-
getUserOperationHandler
-