blob: 0a4ed60cc793c3e4cca86c415e912c3950876fb3 (
plain)
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
42
43
44
45
46
47
48
49
50
|
/*
core/core.cc
This file is part of the Osirion project and is distributed under
the terms of the GNU General Public License version 2
*/
// project headers
#include "common/common.h"
#include "filesystem/filesystem.h"
#include "core/core.h"
namespace core
{
void init()
{
con_debug << "Initializing core..." << std::endl;
common::init();
filesystem::init();
if (::core::Game::instance())
::core::Game::instance()->init();
else
con_warn << "No game module found!" << std::endl;
}
void shutdown()
{
con_debug << "Shutting down core..." << std::endl;
if (::core::Game::instance())
::core::Game::instance()->shutdown();
else
con_warn << "No game module found!" << std::endl;
filesystem::shutdown();
common::shutdown();
}
void frame(float sec)
{
if (::core::Game::instance())
::core::Game::instance()->frame(sec);
}
} //namespace core
|