1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Replace snakes in Class names OpenRCT2/N*-P* (#19227)

* Replace snakes in Class names OpenRCT2/N*-P*

* Rename PODDate (and TimeOfDay for good measure)

Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
This commit is contained in:
Duncan
2023-01-20 05:24:44 +00:00
committed by GitHub
parent e110c631f1
commit 9deed6d98a
45 changed files with 266 additions and 280 deletions

View File

@@ -69,12 +69,12 @@ namespace Platform
return CurrencyType::Pounds;
}
rct2_date GetDateLocal()
RealWorldDate GetDateLocal()
{
auto time = std::time(nullptr);
auto localTime = std::localtime(&time);
rct2_date outDate;
RealWorldDate outDate;
outDate.day = localTime->tm_mday;
outDate.day_of_week = localTime->tm_wday;
outDate.month = localTime->tm_mon + 1;
@@ -82,12 +82,12 @@ namespace Platform
return outDate;
}
rct2_time GetTimeLocal()
RealWorldTime GetTimeLocal()
{
auto time = std::time(nullptr);
auto localTime = std::localtime(&time);
rct2_time outTime;
RealWorldTime outTime;
outTime.hour = localTime->tm_hour;
outTime.minute = localTime->tm_min;
outTime.second = localTime->tm_sec;