Cogs.Core
Extensions
TerrainProvider
Source
JsonSerialization.h
1
#pragma once
2
#include <memory>
3
#include "../Bridge/TerrainProviderFunctions.h"
4
5
#include "Foundation/Memory/MemoryBuffer.h"
6
7
namespace
Cogs::Core::TerrainProvider {
8
9
struct
BaseConfig;
10
11
std::unique_ptr<BaseConfig> deserializeRastersourceConfig(Context* context,
const
StringView json);
12
13
IRasterSource* deserialize(
Cogs::Core::Context
* context,
const
StringView cachesPath,
const
StringView json);
14
15
bool
serializeConfig(Memory::MemoryBuffer& buffer,
const
BaseConfig* conf,
bool
include_credentials=
false
);
16
17
bool
serializeConfig(Memory::MemoryBuffer& buffer,
const
IRasterSource* rasterSource,
bool
include_credentials=
false
);
18
19
}
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Generated by
1.9.6