From 45b8f8f581f0f2788199559025edef7d6035420c Mon Sep 17 00:00:00 2001 From: Gent S Date: Sat, 28 Nov 2020 08:29:06 -0500 Subject: [PATCH] Add RacingManager --- Makefile | 2 ++ src/RacingManager.cpp | 8 ++++++++ src/RacingManager.hpp | 9 +++++++++ src/main.cpp | 2 ++ 4 files changed, 21 insertions(+) create mode 100644 src/RacingManager.cpp create mode 100644 src/RacingManager.hpp diff --git a/Makefile b/Makefile index dd14850..9690dc9 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,7 @@ CXXSRC=\ src/BuddyManager.cpp\ src/GroupManager.cpp\ src/Monitor.cpp\ + src/RacingManager.cpp\ # headers (for timestamp purposes) CHDR=\ @@ -87,6 +88,7 @@ CXXHDR=\ src/BuddyManager.hpp\ src/GroupManager.hpp\ src/Monitor.hpp\ + src/RacingManager.hpp\ COBJ=$(CSRC:.c=.o) CXXOBJ=$(CXXSRC:.cpp=.o) diff --git a/src/RacingManager.cpp b/src/RacingManager.cpp new file mode 100644 index 0000000..80e64ca --- /dev/null +++ b/src/RacingManager.cpp @@ -0,0 +1,8 @@ +#include "CNShardServer.hpp" +#include "CNStructs.hpp" +#include "RacingManager.hpp" + +void RacingManager::init() { + + +} diff --git a/src/RacingManager.hpp b/src/RacingManager.hpp new file mode 100644 index 0000000..63651fc --- /dev/null +++ b/src/RacingManager.hpp @@ -0,0 +1,9 @@ +#pragma once + +#include "CNShardServer.hpp" + +namespace RacingManager { + + void init(); + +} diff --git a/src/main.cpp b/src/main.cpp index d0b7f11..6178124 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,6 +14,7 @@ #include "ChunkManager.hpp" #include "GroupManager.hpp" #include "Monitor.hpp" +#include "RacingManager.hpp" #include "settings.hpp" @@ -101,6 +102,7 @@ int main() { TransportManager::init(); BuddyManager::init(); GroupManager::init(); + RacingManager::init(); Database::open(); switch (settings::EVENTMODE) {