Vixen
02b45cc4
csharp
public sealed class SceneBlock

The entities of a scene that share one archetype, and their component data.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

What "archetype-ordered blobs for bulk world load" from [08](../../../docs/plan/08-asset-pipeline-and-addressables.md) means concretely: loading a block is one CreateMany and then a walk down each column, so a two-thousand entity level of six archetypes costs six archetype lookups rather than two thousand.

The archetype is the column set and is not stored as one. A dense component id is assigned in the order a process first touches a type, so it is meaningless outside the process that assigned it; the names are what survive, and the archetype is rebuilt from them at load.

Fields and properties (2)

  • public int[] Entities

    Which entities are in it, as indices into the scene's tables, ascending.

  • public SceneColumn[] Columns

    What they carry, one column per component, in name order.

Used by (14)

  • SceneAssetTestsVixen.Engine.Tests
  • SceneContentVixen.Engine
  • TypeRegistrationVixen.Engine
  • Vixen_Engine_Scenes_SceneBlockSerializerVixen.Engine
  • Vixen_Engine_Scenes_SceneContentSerializerVixen.Engine
  • Vixen_Engine_Worlds_WorldContentSerializerVixen.Engine
  • WorldContentVixen.Engine
  • WorldSerializerVixen.Engine
  • WorldSerializerTestsVixen.Engine.Tests
  • CompiledSceneViewVixen.Editor.AssetEditors
  • SceneCompilerVixen.Editor.Assets
  • SceneImporterTestsVixen.Editor.Assets.Tests
  • SceneRenderComponentTestsVixen.Editor.Assets.Tests
  • StartupSceneTestsVixen.App.Tests