![]() |
Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
|
Persists Gondwana engine configuration in browser localStorage.
More...
Public Member Functions | |
| BrowserLocalStorageEngineConfigurationStore (IJSRuntime jsRuntime, string storageKey=DefaultStorageKey, bool autoSave=false) | |
| Creates a local-storage-backed configuration store and loads its current value. | |
| void | Save () |
| Persists the current Configuration. | |
| void | Dispose () |
Static Public Attributes | |
| const string | DefaultStorageKey = "gondwana.configuration" |
| The default storage key. | |
Properties | |
| EngineConfiguration | Configuration [get] |
| Gets the configuration represented by this store. | |
| bool | AutoSave [get, set] |
| Gets or sets whether the store saves automatically when disposed. | |
Persists Gondwana engine configuration in browser localStorage.
Blazor WebAssembly exposes an IJSInProcessRuntime, allowing the synchronous IEngineConfigurationStore contract to participate in the normal engine initialization and shutdown sequence.
Definition at line 15 of file BrowserLocalStorageEngineConfigurationStore.cs.
| Gondwana.Blazor.Configuration.BrowserLocalStorageEngineConfigurationStore.BrowserLocalStorageEngineConfigurationStore | ( | IJSRuntime | jsRuntime, |
| string | storageKey = DefaultStorageKey, | ||
| bool | autoSave = false ) |
Creates a local-storage-backed configuration store and loads its current value.
| jsRuntime | The JavaScript runtime used for browser interop. |
| storageKey | The browser local-storage key used for the configuration. |
| autoSave | Whether configuration changes are saved automatically. |
Definition at line 32 of file BrowserLocalStorageEngineConfigurationStore.cs.
| void Gondwana.Blazor.Configuration.BrowserLocalStorageEngineConfigurationStore.Dispose | ( | ) |
Definition at line 68 of file BrowserLocalStorageEngineConfigurationStore.cs.
| void Gondwana.Blazor.Configuration.BrowserLocalStorageEngineConfigurationStore.Save | ( | ) |
Persists the current Configuration.
Implements Gondwana.Configuration.IEngineConfigurationStore.
Definition at line 59 of file BrowserLocalStorageEngineConfigurationStore.cs.
|
static |
The default storage key.
Definition at line 20 of file BrowserLocalStorageEngineConfigurationStore.cs.
|
getset |
Gets or sets whether the store saves automatically when disposed.
Implements Gondwana.Configuration.IEngineConfigurationStore.
Definition at line 56 of file BrowserLocalStorageEngineConfigurationStore.cs.
|
get |
Gets the configuration represented by this store.
Implements Gondwana.Configuration.IEngineConfigurationStore.
Definition at line 53 of file BrowserLocalStorageEngineConfigurationStore.cs.