Interface IGameGraphicsServiceFactory
Factory interface for creating game graphics services.
Namespace: Serenity.GameGraphics.Application.Interfaces
Assembly: Serenity.GameGraphics.Application.dll
Syntax
public interface IGameGraphicsServiceFactory
Methods
CreateService(string, IGameGraphicsSettings, IEventDispatcherService, ILogService, IGameSettingsService)
Creates a new game graphics service instance with the specified configuration.
Declaration
IGameGraphicsService CreateService(string serviceName, IGameGraphicsSettings settings, IEventDispatcherService eventDispatcherService, ILogService logService, IGameSettingsService gameSettingsService)
Parameters
| Type | Name | Description |
|---|---|---|
| string | serviceName | The name to assign to the service. |
| IGameGraphicsSettings | settings | The graphics settings configuration for the service. |
| IEventDispatcherService | eventDispatcherService | The event dispatcher service for handling graphics events. |
| ILogService | logService | The log service for logging information. |
| IGameSettingsService | gameSettingsService | The game settings service for reading persisted user settings. |
Returns
| Type | Description |
|---|---|
| IGameGraphicsService | An initialized game graphics service instance. |