mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add '--script', '--version' command line arguments
This commit is contained in:
parent
48d94036fd
commit
fa1646a9bd
7 changed files with 48 additions and 19 deletions
19
src/ServerMainloop.hpp
Normal file
19
src/ServerMainloop.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
class Level;
|
||||
class LevelController;
|
||||
class Engine;
|
||||
|
||||
class ServerMainloop {
|
||||
Engine& engine;
|
||||
std::unique_ptr<LevelController> controller;
|
||||
public:
|
||||
ServerMainloop(Engine& engine);
|
||||
~ServerMainloop();
|
||||
|
||||
void run();
|
||||
|
||||
void setLevel(std::unique_ptr<Level> level);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue