entityspawnloadingprogresstopic

CREAT3D.ECS.DataModel.EventSystems.Topics.ChunkManagement

EntitySpawnLoadingProgressTopic

Type Topic
Payload ValueMessage<float>
Broadcaster IEntitySpawnLoadingService

This topic is broadcast from IEntitySpawnLoadingService when a Chunk loads from a default state, for every scene of that Chunk that has an associated EntitySpawn collection, as each EntitySpawn collection instantiates Entities. The value of the payload is the normalized loading progress of the operation of a given EntitySpawn collection with values ranging from 0.0 to 1.0. This broadcast is meant to be captured so that the UI layer can be notified and produce a loading report for that collection. The frequency and number of these broadcasts is determined by the LoadingFrequency value found in IChunkSystemStaticData. Even at very high LoadingFrequency, the topic is broadcast at least 2 times for each collection, once with progress value of 0f at the beginning of the collection's load, and once with progress value of 1f at the end of the collection's load. More broadcasts are injected in between as LoadingFrequency value decreases. At loading Frequency value of 1, there is one broadcast happening for every loaded Entity of that collection.

entityspawnloadingprogresstopic.txt · Last modified: by diviner

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki