TrueReality  v0.1.1912
SystemEvents.h
Go to the documentation of this file.
1 /*
2 * True Reality Open Source Game and Simulation Engine
3 * Copyright © 2021 Acid Rain Studios LLC
4 *
5 * This library is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU Lesser General Public License as published by the Free
7 * Software Foundation; either version 3.0 of the License, or (at your option)
8 * any later version.
9 *
10 * This library is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; if not, write to the Free Software Foundation, Inc.,
17 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * @author Maxim Serebrennik
20 */
21 
22 #pragma once
23 
24 #include "Export.h"
25 
27 
28 namespace trCore
29 {
36  {
38  public:
39 
42 
45 
47  const static SystemEvents PRE_FRAME;
48 
50  const static SystemEvents CAMERA_SYNCH;
51 
53  const static SystemEvents FRAME_SYNCH;
54 
56  const static SystemEvents FRAME;
57 
59  const static SystemEvents POST_FRAME;
60 
62  const static SystemEvents PAUSED;
63 
65  const static SystemEvents UNPAUSED;
66 
69 
72  protected:
73 
82  SystemEvents(const std::string& name, unsigned int id);
83  };
84 }
#define TR_CORE_EXPORT
Definition: trCore/Export.h:33
Enum that specifies type of a system event.
Definition: SystemEvents.h:35
static const SystemEvents UNPAUSED
The unpaused event.
Definition: SystemEvents.h:65
This class represents a type-safe Enumeration pattern.
static const SystemEvents SHUTTING_DOWN
Gets sent out when the system is shutting down.
Definition: SystemEvents.h:71
static const SystemEvents POST_EVENT_TRAVERSAL
The post event traversal event.
Definition: SystemEvents.h:44
static const SystemEvents PAUSED
The paused event.
Definition: SystemEvents.h:62
#define DECLARE_ENUM(EnumType)
Helper macros used to create the static data and methods needed to enumerate an EnumerationString.
static const SystemEvents EVENT_TRAVERSAL
The event traversal event.
Definition: SystemEvents.h:41
static const SystemEvents TIME_SCALE_CHANGED
Indicates a change in the time scale.
Definition: SystemEvents.h:68
static const SystemEvents PRE_FRAME
The pre frame event.
Definition: SystemEvents.h:47
static const SystemEvents FRAME_SYNCH
The frame synchronization event.
Definition: SystemEvents.h:53
static const SystemEvents CAMERA_SYNCH
The camera synchronization event.
Definition: SystemEvents.h:50
static const SystemEvents FRAME
The frame event.
Definition: SystemEvents.h:56
static const SystemEvents POST_FRAME
The post frame event.
Definition: SystemEvents.h:59