//CREAT3D.ECS.Services.ChunkManagement// ===== IChunkSerializationService ===== This service's primary responsibility is to serialize [[Chunk|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**([[ChunkSerializationSettings]] settings) | ^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. |