User Tools

Site Tools


ichunkserializationservice

This is an old revision of the document!


CREAT3D.ECS.Services.ChunkManagement

IChunkSerializationService

This service's primary responsibility is to serialize Chunks into a serialized structure called EntityPacketCollection. This structure can be then written to disk through services like ISaveGameService or be transferred to external endpoints.

Methods

Method EntityPacketCollection SerializeChunk(Chunk chunk, ChunkSerializationSettings settings)
Description Serializes the Entities of the specified Chunk into an EntityPacketCollection. The ChunkSerializationSettings are referenced to determine whether the packets will be encoded, and whether Entities with INonSerializedComponent will be included.
Method Dictionary<Chunk, EntityPacketCollection> SerializeLoadedChunks(CancellationToken cancellationToken)
Description Serializes all currently loaded Chunks into EntityPacketCollection structures. The ChunkSerializationSettings are referenced to determine whether the packets will be encoded, and whether Entities with INonSerializedComponent will be included.
ichunkserializationservice.1777137193.txt.gz · Last modified: by diviner

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki