Class UnityGameSettingsFactory
Factory class for creating GameSettings entities from game settings definitions.
Provides Unity-specific implementation of the IGameSettingsFactory interface
for converting definition objects into concrete GameSettings instances.
Implements
Inherited Members
Namespace: Serenity.GameSettings.Infrastructure.Services
Assembly: Serenity.UnityGlobal.Infrastructure.dll
Syntax
public class UnityGameSettingsFactory : IGameSettingsFactory
Constructors
UnityGameSettingsFactory()
Declaration
public UnityGameSettingsFactory()
Methods
CreateGameSettings(IGameSettingsDefinition)
Creates a GameSettings entity from a game settings definition.
Converts an IGameSettingsDefinition into a concrete GameSettings object
with all properties mapped from the definition including ID, type, options,
default values, limits, and storage configuration.
Declaration
public GameSettingsEntity CreateGameSettings(IGameSettingsDefinition definition)
Parameters
| Type | Name | Description |
|---|---|---|
| IGameSettingsDefinition | definition | Game settings definition containing all configuration data |
Returns
| Type | Description |
|---|---|
| GameSettingsEntity | New GameSettings entity with properties mapped from the definition |