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.
template<typename BASE_TYPE, AZStd::size_t REWIND_SIZE>
Constructor.
- Parameters
-
value | base type value to construct from |
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 |
template<typename BASE_TYPE, AZStd::size_t REWIND_SIZE>
Copy construct from another rewindable history buffer.
- Parameters
-
rhs | rewindable history buffer to construct from |
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Const base type retriever.
- Returns
- value in const base type form
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
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
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Base type retriever.
- Returns
- value in base type form
template<typename BASE_TYPE , AZStd::size_t REWIND_SIZE>
Const base type operator.
- Returns
- value in const base type form
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
template<typename BASE_TYPE, AZStd::size_t REWIND_SIZE>
Assignment from underlying base type.
- Parameters
-
rhs | base type value to assign from |
template<typename BASE_TYPE, AZStd::size_t REWIND_SIZE>
Assignment from rewindable history buffer.
- Parameters
-
rhs | rewindable history buffer to assign from |
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
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
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