Navigation
API > API/Plugins > API/Plugins/GameplayGraph
=========== README FIRST ===========
This file provides the basics by which you can support incremental serialization for a UGraph for any possible serialized type. There are a few concepts at work here:
- The "Graph" - this is the gameplay graph that you wish to serialize.
The "Serializer" - this is the class that inherits from IGraphSerialization that serializes your data. There is an additional caveat: this class must implement a "GetData" function that returns (see next point)...
- The "Serialized Graph Data" - this is the object that you wish to end up with after serialization.
With incremental serialization we introduce:
- "Delta Actions" - Any time the graph is changed, we add a "Delta Action" to a buffer. The next time Flush is called on the incremental serialization, we'd expect the actions in the buffer to get applied to the cached data and make it equivalent to the graph's current state.
- The "Delta Action Handler" - This takes in a list of "Delta Actions" and makes the appropriate changes to the "Serialized Graph Data".
- The "TGraphIncrementalSerialization" - this is the public interface to all of the above. Users of incremental serialization need only construct a subclass of this to use. It should under-the-hood hook up to the graph events to properly detect changes.
| Name | TDerivedGraphDeltaAction |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/GameplayGraph/Source/GameplayGraph/Public/Graph/GraphIncrementalSerialization.h |
| Include Path | #include "Graph/GraphIncrementalSerialization.h" |
Syntax
template<typename TDerived>
struct TDerivedGraphDeltaAction
Derived Classes
- TDefaultGraphEdgeDeltaAction
- TDefaultGraphIslandDeltaAction
- TDefaultGraphIslandVertexDeltaAction
- TDefaultGraphVertexDeltaAction
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Accept
(
TDeltaActionHandler& Visitor, |
Graph/GraphIncrementalSerialization.h |