Constructor MemoryDataLayer
MemoryDataLayer(GameFoundationDatabase)
Creates a data layer with no player data.
Declaration
public MemoryDataLayer(GameFoundationDatabase database = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GameFoundationDatabase | database | Provides catalogs to the CatalogManager. |
MemoryDataLayer(GameFoundationSerializableData, GameFoundationDatabase)
Create a data layer with the given catalog provider that will handle the given data for the current game session only.
Declaration
public MemoryDataLayer(GameFoundationSerializableData data, GameFoundationDatabase database = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GameFoundationSerializableData | data | GameFoundation's serializable data. |
| GameFoundationDatabase | database | Provides catalogs to the CatalogManager. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | If the given data contains invalid null values. |