coastline 0.0.4
Loading...
Searching...
No Matches
ghostfile.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <cstdio>
5#include <optional>
6#include <span>
7#include <string>
8#include <vector>
9
10#include <nlohmann/json_fwd.hpp>
11
12namespace coastline {
13
23
30std::optional<std::vector<std::uint8_t>> GhostFromJson(const nlohmann::ordered_json &json);
31
38std::string FormatGhostJson(const nlohmann::ordered_json &json);
39
40} // namespace coastline
Definition assetimport.h:11
std::string FormatGhostJson(const nlohmann::ordered_json &json)
Write the JSON of a recording with each frame on one line.
std::optional< std::vector< std::uint8_t > > GhostFromJson(const nlohmann::ordered_json &json)
Build the file of a ghost recording from its JSON, the inverse of GhostToJson().
std::optional< nlohmann::ordered_json > GhostToJson(std::span< const std::uint8_t > bytes)
Describe a ghost recording of the PC release (RGho) as JSON: the recording, the settings,...