A simple serializable data container that keeps a history of previous values, and can fetch those old values on request.
More...
#include <RewindableObject.h>
template<typename BASE_TYPE, AZStd::size_t REWIND_SIZE>
class Multiplayer::RewindableObject< BASE_TYPE, REWIND_SIZE >
A simple serializable data container that keeps a history of previous values, and can fetch those old values on request.
◆ RewindableObject() [1/3]
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Constructor.
- Parameters
-
value | base type value to construct from |
◆ RewindableObject() [2/3]
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Copy construct from underlying base type.
- Parameters
-
value | base type value to construct from |
owningConnectionId | the entity id of the owning object |
◆ RewindableObject() [3/3]
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Copy construct from another rewindable history buffer.
- Parameters
-
rhs | rewindable history buffer to construct from |
◆ Get()
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Const base type retriever.
- Returns
- value in const base type form
◆ GetLastSerializedValue()
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Const base type retriever for value at last known serialized value or the nearest to it.
- Returns
- value in const base type form
◆ GetPrevious()
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Const base type retriever for one host frame behind Get() when contextually appropriate, otherwise identical to Get().
- Returns
- value in const base type form
◆ Modify()
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Base type retriever.
- Returns
- value in base type form
◆ operator const BASE_TYPE &()
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Const base type operator.
- Returns
- value in const base type form
◆ operator!=()
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Inequality operator.
- Parameters
-
rhs | base type value to compare against |
- Returns
- boolean true if this != rhs
◆ operator=() [1/2]
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Assignment from underlying base type.
- Parameters
-
rhs | base type value to assign from |
◆ operator=() [2/2]
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Assignment from rewindable history buffer.
- Parameters
-
rhs | rewindable history buffer to assign from |
◆ operator==()
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Equality operator.
- Parameters
-
rhs | base type value to compare against |
- Returns
- boolean true if this == rhs
◆ Serialize()
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Base serialize method for all serializable structures or classes to implement
- Parameters
-
serializer | ISerializer instance to use for serialization |
- Returns
- boolean true for success, false for serialization failure
◆ SetOwningConnectionId()
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Sets the owning connectionId for the given rewindable object instance.
- Parameters
-
owningConnectionId | the new connectionId to use as the owning connectionId. |
The documentation for this class was generated from the following files:
- Gems/Multiplayer/Code/Include/Multiplayer/NetworkTime/RewindableObject.h
- Gems/Multiplayer/Code/Include/Multiplayer/NetworkTime/RewindableObject.inl