fec2cd8d24
- serialization - chunks - parralelfor test
14 lines
479 B
C#
14 lines
479 B
C#
namespace Nerfed.Runtime.Scene;
|
|
|
|
/// <summary>
|
|
/// Abstraction over a concrete scene format (JSON, binary, …).
|
|
/// Implementations read and write <see cref="SceneData"/> to a <see cref="Stream"/>,
|
|
/// making it straightforward to add a compact binary format later without
|
|
/// changing any of the surrounding scene infrastructure.
|
|
/// </summary>
|
|
public interface ISceneSerializer
|
|
{
|
|
void Serialize(SceneData scene, Stream stream);
|
|
SceneData Deserialize(Stream stream);
|
|
}
|