Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/MoveLibrary
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMoverBlackboard
References
| Module | Mover |
| Header | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoveLibrary/MoverBlackboard.h |
| Include | #include "MoveLibrary/MoverBlackboard.h" |
Syntax
UCLASS (BlueprintType)
class UMoverBlackboard : public UObject
Remarks
MoverBlackboard: this is a simple generic map that can store any type, used as a way for decoupled systems to store calculations or transient state data that isn't necessary to reconstitute the movement simulation. It has support for invalidation, which could occur, for example, when a rollback is triggered. Values submitted are copy-in, copy-out. Unlike a traditional blackboard pattern, there is no support for subscribing to changes. TODO: expand invalidation rules attached to BBObjs, for instance if we wanted some to invalidate upon rollback. Some might expire over time or after a number of simulation frames. Or an item could be tagged with a predicted sim frame #, and become cleared once that frame is finalized/confirmed.
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | TODO: make GetOrAdds. One that takes a value, and one that takes a lambda that can generate the new value. | ||
| void | Invalidate
(
FName ObjName |
Invalidate an object by name | |
| void | Invalidate
(
EInvalidationReason Reason |
Invalidate all objects that can be affected by a particular circumstance (such as a rollback) | |
| void | Invalidate all objects | ||
| void | Store object by a named key, overwriting any existing object | ||
| bool | Attempt to retrieve an object from the blackboard. |