Show / Hide Table of Contents

Interface IChunkGrid

Interface for all Chunk Grid implementations (both on server side and client-side). Chunk Grid is 3D grid of IChunk objects.

Namespace: Eco.Shared.Voxel
Assembly: Eco.Shared.dll
Syntax
public interface IChunkGrid

Properties

MaxChunkPos

Declaration
Vector3i MaxChunkPos { get; }
Property Value
Type Description
Vector3i

MinChunkPos

Declaration
Vector3i MinChunkPos { get; }
Property Value
Type Description
Vector3i

WrappedChunkSize

Declaration
Vector3i WrappedChunkSize { get; }
Property Value
Type Description
Vector3i

WrappedVoxelSize

Declaration
Vector3i WrappedVoxelSize { get; }
Property Value
Type Description
Vector3i

Methods

Clear(Guid)

Removes all chunks from grid.

Declaration
void Clear(Guid newGuid)
Parameters
Type Name Description
System.Guid newGuid

ClosestWrappedLocation(Vector3, Vector3)

Declaration
Vector3 ClosestWrappedLocation(Vector3 viewPosition, Vector3 position)
Parameters
Type Name Description
System.Numerics.Vector3 viewPosition
System.Numerics.Vector3 position
Returns
Type Description
System.Numerics.Vector3

GetChunks(WorldRange)

Declaration
IEnumerable<IChunk> GetChunks(WorldRange range)
Parameters
Type Name Description
WorldRange range
Returns
Type Description
System.Collections.Generic.IEnumerable<IChunk>

GetVisibleChunks(Vector3, Single)

Declaration
IEnumerable<IChunk> GetVisibleChunks(Vector3 observerPosition, float viewDistance)
Parameters
Type Name Description
System.Numerics.Vector3 observerPosition
System.Single viewDistance
Returns
Type Description
System.Collections.Generic.IEnumerable<IChunk>

Events

SizeChangedEvent

Declaration
event Action<Vector3i> SizeChangedEvent
Event Type
Type Description
System.Action<Vector3i>

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
ChunkGridExtensions.Clear(IChunkGrid)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾