mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
Default time is now the current time rather than 0
This commit is contained in:
parent
b676343b02
commit
17e9fb0d3c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user