Some shutdown crash fixes, reverted a whitespace, and added some basic unit tests for time additions

Signed-off-by: kberg-amzn <karlberg@amazon.com>
This commit is contained in:
kberg-amzn
2021-10-01 15:04:50 -07:00
parent 865ed60007
commit bf136a567b
8 changed files with 85 additions and 2 deletions
@@ -67,6 +67,9 @@ namespace Multiplayer
//! @return reference to the requested component data, an empty container will be returned if the NetComponentId does not exist
const ComponentData& GetMultiplayerComponentData(NetComponentId netComponentId) const;
//! This releases all owned memory, should only be called during multiplayer shutdown.
void Reset();
private:
NetComponentId m_nextNetComponentId = NetComponentId{ 0 };
AZStd::unordered_map<NetComponentId, ComponentData> m_componentData;