Class CachedCuboidListFaster
- Namespace
- Vintagestory.API.Datastructures
- Assembly
- VintagestoryAPI.dll
Just like CachedCuboidList except we use structs internally, for RAM access performance. We leave CachedCuboidList just as it is for mod backwards compatibility. Rotated cuboids are stored as their local AABB here — the rotation is dropped to keep the per-tick collision loop allocation-free. Use CachedCuboidList where rotation precision matters. Open in GitHub
public class CachedCuboidListFaster : IEnumerable<Cuboidd>, IEnumerable
- Inheritance
-
CachedCuboidListFaster
- Implements
- Inherited Members
- Extension Methods
Constructors
CachedCuboidListFaster()
public CachedCuboidListFaster()
Fields
Count
public int Count
Field Value
blocks
public Block[] blocks
Field Value
- Block[]
cuboids
public Cuboidd[] cuboids
Field Value
- Cuboidd[]
positions
public FastVec3i[] positions
Field Value
Methods
Add(Cuboidf, int, int, int, Block)
public void Add(Cuboidf cuboid, int x, int y, int z, Block block = null)
Parameters
Add(Cuboidf[], int, int, int, Block)
public void Add(Cuboidf[] cuboids, int x, int y, int z, Block block = null)
Parameters
Clear()
public void Clear()
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<Cuboidd> GetEnumerator()
Returns
- IEnumerator<Cuboidd>
An enumerator that can be used to iterate through the collection.