Game Element
This component is crucial to manage elements in All On Board!. With it, elements receive a unique Game Element ID, are able to store data that persists across sessions, and their location and other data is automatically replicated across all players.
If you created your element by following the guide Registering elements, this component is already part of your Blueprint. However, if you created the Blueprint from scratch, you must add it manually.
Blueprint API
| Function | Description |
|---|---|
GetGameElementID() | Returns the unique numeric identifier (GEID) for this element. Returns -1 if not yet assigned. |
GetGameElementName() | Returns the logical name used by the Factory to identify this element (matches a row in the GameElementIndex DataTable). |
GetGameElementType() | Returns the Factory type key assigned to this element (e.g., "Card", "Token", "Board"). |
IsInitialized() | Returns whether this element has completed initialization (ID assigned, delegates fired). |
IsCreatedFromSnapshot() | Returns whether this element was restored from a saved game snapshot. |
IsVolatile() | Returns whether this element is volatile (excluded from save/load persistence). |
SetVolatile(bool) | Marks the element as volatile (excluded from save/load) or persistent. |
ForceRegisterToNotebook() | Server-only. Forces re-registration of the element with the Notebook subsystem on all clients. |
Blueprint Delegates
| Delegate | Fires When |
|---|---|
BP_OnGameElementInitializeDelegate | The element finishes initialization |
BP_OnGameElementUpdateDelegate | Any observed Notebook data key on this element changes |
BP_OnGameElementNameUpdateDelegate | The element's logical name changes |
BP_OnGameElementTypeUpdateDelegate | The element's Factory type key changes |