Vixen
02b45cc4
csharp
public readonly record struct FoliageAddress

Where one instance is, as a thing that can be selected and moved.

Read the guide page for this →

Remarks

⚠ An address, not a reference, and it is only valid until the chunk changes. Removing an instance shifts the ones after it, so a selection held across an erase stroke points at somebody else's tree. Remove takes addresses in descending index order for exactly this reason, and the editor re-resolves a selection after any edit.

Fields and properties (3)

  • public int Type

    Which type it is, by palette index.

  • public FoliageCellKey Cell

    Which cell holds it.

  • public int Index

    Where in that cell's chunk it sits.

Methods (1)

  • public FoliageAddress(int Type, FoliageCellKey Cell, int Index)

    Where one instance is, as a thing that can be selected and moved.

Used by (11)

  • FoliageCollisionVixen.Foliage
  • FoliageCollisionTestsVixen.Foliage.Tests
  • FoliageScatterVixen.Foliage
  • FoliageVolumeVixen.Foliage
  • FoliageVolumeTestsVixen.Foliage.Tests
  • PaletteRemovalTestsVixen.Foliage.Tests
  • FoliageEditVixen.Editor.Terrain
  • FoliageModeVixen.Editor.Terrain
  • FoliageModeTestsVixen.Editor.Terrain.Tests
  • FoliageMoveCommandVixen.Editor.Terrain
  • FoliageStrokeCommandVixen.Editor.Terrain