blob: ff95e574d218793ac665ecaaf71c773381846417 (
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
|
#pragma once
#include "generator/emitter_interface.hpp"
#include <memory>
#include <string>
#include <vector>
namespace feature
{
class FeatureBuilder;
struct GenerateInfo;
} // namespace feature
namespace generator
{
class CityBoundaryProcessor;
class WorldMapper;
class LayerBase;
// This class is implementation of EmitterInterface for the world.
class EmitterWorld : public EmitterInterface
{
public:
explicit EmitterWorld(feature::GenerateInfo const & info);
// EmitterInterface overrides:
void Process(feature::FeatureBuilder & feature) override;
bool Finish() override;
void GetNames(std::vector<std::string> & names) const override;
private:
std::shared_ptr<CityBoundaryProcessor> m_cityBoundaryProcessor;
std::shared_ptr<WorldMapper> m_worldMapper;
std::shared_ptr<LayerBase> m_processingChain;
};
} // namespace generator
|