TrueReality  v0.1.1912
SystemEvents.cpp
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 #include <trCore/SystemEvents.h>
23 
24 namespace trCore
25 {
26  IMPLEMENT_ENUM(SystemEvents)
27 
28 
29  SystemEvents::SystemEvents(const std::string& name, unsigned int id) : EnumerationNumeric(name, id)
30  {
31  AddInstance(this);
32  }
34  const SystemEvents SystemEvents::EVENT_TRAVERSAL("EVENT_TRAVERSAL", 0);
35  const SystemEvents SystemEvents::POST_EVENT_TRAVERSAL("POST_EVENT_TRAVERSAL", 1);
36  const SystemEvents SystemEvents::PRE_FRAME("PRE_FRAME", 2);
37  const SystemEvents SystemEvents::CAMERA_SYNCH("CAMERA_SYNCH", 3);
38  const SystemEvents SystemEvents::FRAME_SYNCH("FRAME_SYNCH", 4);
39  const SystemEvents SystemEvents::FRAME("FRAME", 5);
40  const SystemEvents SystemEvents::POST_FRAME("POST_FRAME", 6);
41  const SystemEvents SystemEvents::PAUSED("PAUSED", 7);
42  const SystemEvents SystemEvents::UNPAUSED("UNPAUSED", 8);
43  const SystemEvents SystemEvents::TIME_SCALE_CHANGED("TIME_SCALE_CHANGED", 9);
44  const SystemEvents SystemEvents::SHUTTING_DOWN("SHUTTING_DOWN", 10);
46 
47 }
48 
Enum that specifies type of a system event.
Definition: SystemEvents.h:35
static const SystemEvents UNPAUSED
The unpaused event.
Definition: SystemEvents.h:65
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
#define IMPLEMENT_ENUM(EnumType)
A macro that defines implement enum.
static const SystemEvents PAUSED
The paused event.
Definition: SystemEvents.h:62
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