Files
Nerfed/Nerfed.Runtime/Scene/ISceneSerializer.cs
T
max fec2cd8d24 testing building some core systems
- serialization
- chunks
- parralelfor test
2026-04-24 19:21:03 +02:00

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);
}