16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 00:09:18 +02:00

milek7/sim branch network code import

This commit is contained in:
tmj-fstate
2020-02-16 03:03:17 +01:00
parent 2ce3091e8f
commit 7a0c89f508
56 changed files with 2609 additions and 426 deletions

View File

@@ -10,8 +10,11 @@ http://mozilla.org/MPL/2.0/.
#pragma once
#include "applicationmode.h"
#include "simulation.h"
class scenarioloader_mode : public application_mode {
std::shared_ptr<simulation::deserializer_state> state;
std::chrono::system_clock::time_point timestart;
public:
// constructors
@@ -32,6 +35,8 @@ public:
// input handlers
void
on_key( int const Key, int const Scancode, int const Action, int const Mods ) override { ; }
void
on_char( unsigned int const Char ) override { ; }
void
on_cursor_pos( double const Horizontal, double const Vertical ) override { ; }
void
@@ -40,4 +45,6 @@ public:
on_scroll( double const Xoffset, double const Yoffset ) override { ; }
void
on_event_poll() override { ; }
bool
is_command_processor() override { return false; }
};