Default time is now the current time rather than 0

This commit is contained in:
EmosewaMC 2022-03-30 00:20:04 -07:00
parent b676343b02
commit 17e9fb0d3c

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <chrono>
#include "Entity.h" #include "Entity.h"
#include "Component.h" #include "Component.h"
@ -182,7 +183,7 @@ private:
/** /**
* The time since this property was claimed * The time since this property was claimed
*/ */
uint64_t claimedTime = 0; uint64_t claimedTime = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
/** /**
* The models that are placed on this property * The models that are placed on this property
@ -222,7 +223,7 @@ private:
/** /**
* The last time this property was updated * The last time this property was updated
*/ */
uint32_t LastUpdatedTime = 0; uint32_t LastUpdatedTime = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
/** /**
* Determines which players may visit this property * Determines which players may visit this property