blob: ee09740494382c096b868ea4f0561d7035dc4b53 (
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
|
#include "BaseBattle.h"
#include <entt/entity/registry.hpp>
#include <entt/signal/dispatcher.hpp>
#include <kurator/engine/Context.h>
#include <kurator/campaign/Scenario.h>
#include <kurator/sim.h>
namespace kurator
{
namespace sim
{
BaseBattle::BaseBattle(const campaign::Scenario& scenario) :
state {load_scenario(scenario)},
base {base_simulation_systems(state)}
{
}
engine::Context
BaseBattle::context()
{
return state;
}
engine::ConstContext
BaseBattle::const_context() const
{
return state;
}
void
BaseBattle::update(engine::Context& ctx)
{
base(ctx);
}
} // namespace sim
} // namespace kurator
|