-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
41 lines (32 loc) · 975 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "bitengine/System.hpp"
#include "bitengine/Math.hpp"
#include "bitengine/System/tinyxml2.h"
#include "client/RogueZombieGame.hpp"
#include "server/RogueZombieServer.hpp"
#include "xogeni/XoGeniGame.hpp"
#include "ResourcePath.h"
#if defined(__OS_WIN__)
#if defined(_DEBUG)
//#include "vld.h" // Visual Leak Detector (Memory Leaks)
#endif
#endif
int main(int argc, char* argv[])
{
bit::Output::stream << "Test" << ": " << bit::Math::toHash(std::string("Test")); bit::Output::Flush();
bit::Output::stream << "Test" << ": " << bit::String::toHash(std::string("Test")); bit::Output::Flush();
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::LShift))
{
XoGeni::XoGeniGame generator;
generator.run();
return 0;
}
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::S))
{
RogueZombieServer server;
server.run();
return 0;
}
RogueZombieGame game;
game.run();
return 0;
}