csharp
public readonly record struct FoliageAddressWhere one instance is, as a thing that can be selected and moved.
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 TypeWhich type it is, by palette index.
public FoliageCellKey CellWhich cell holds it.
public int IndexWhere 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