mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-15 21:44:09 +00:00
the great reorganization
This commit is contained in:
parent
219a65b81a
commit
53023eb65b
150 changed files with 45 additions and 37 deletions
31
src/core/Clock.h
Normal file
31
src/core/Clock.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#pragma once
|
||||
|
||||
class CClock
|
||||
{
|
||||
static uint8 &ms_nGameClockHours;
|
||||
static uint8 &ms_nGameClockMinutes;
|
||||
static uint16 &ms_nGameClockSeconds;
|
||||
static uint8 &ms_Stored_nGameClockHours;
|
||||
static uint8 &ms_Stored_nGameClockMinutes;
|
||||
static uint16 &ms_Stored_nGameClockSeconds;
|
||||
static uint32 &ms_nMillisecondsPerGameMinute;
|
||||
static int32 &ms_nLastClockTick;
|
||||
static bool &ms_bClockHasBeenStored;
|
||||
public:
|
||||
|
||||
static void Initialise(uint32 scale);
|
||||
static void Update(void);
|
||||
static void SetGameClock(uint8 h, uint8 m);
|
||||
static int32 GetGameClockMinutesUntil(uint8 h, uint8 m);
|
||||
static bool GetIsTimeInRange(uint8 h1, uint8 h2);
|
||||
static void StoreClock(void);
|
||||
static void RestoreClock(void);
|
||||
|
||||
static uint8 GetHours(void) { return ms_nGameClockHours; }
|
||||
static uint8 GetMinutes(void) { return ms_nGameClockMinutes; }
|
||||
static int16 GetSeconds(void) { return ms_nGameClockSeconds; }
|
||||
|
||||
|
||||
static uint8 &GetHoursRef(void) { return ms_nGameClockHours; }
|
||||
static uint8 &GetMinutesRef(void) { return ms_nGameClockMinutes; }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue