mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 14:00:53 +01:00
21 lines
491 B
C++
21 lines
491 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <encoding/Structs/TimeModel.h>
|
|
|
|
struct DateTime
|
|
{
|
|
[[nodiscard]] static uint32_t GetNumberOfDaysByMonthIndex(int index);
|
|
|
|
DateTime() = default;
|
|
DateTime(TimeModel aTimeModel)
|
|
: m_timeModel(aTimeModel)
|
|
{}
|
|
|
|
bool operator==(const DateTime& other) const;
|
|
void Update(uint64_t aDeltaTick);
|
|
float GetDeltaTime(uint64_t aDeltaTick) const noexcept;
|
|
float GetTimeInDays() const noexcept;
|
|
|
|
TimeModel m_timeModel;
|
|
};
|