Show / Hide Table of Contents

Class PackedChunkPosition

Packed chunk position. Useful when you need to use chunk position as lookup key (i.e. in Dictionary) for faster checks and compact storage.

Inheritance
System.Object
PackedChunkPosition
Namespace: Eco.Shared.Math
Assembly: Eco.Shared.dll
Syntax
public sealed class PackedChunkPosition : ValueType

Properties

X

Declaration
public int X { get; set; }
Property Value
Type Description
System.Int32

Y

Declaration
public int Y { get; set; }
Property Value
Type Description
System.Int32

Z

Declaration
public int Z { get; set; }
Property Value
Type Description
System.Int32

Methods

Initialize(Vector2i)

Declaration
public static void Initialize(Vector2i chunkSize)
Parameters
Type Name Description
Vector2i chunkSize

Operators

Explicit(Vector3i to PackedChunkPosition)

Declaration
public static explicit operator PackedChunkPosition(Vector3i value)
Parameters
Type Name Description
Vector3i value
Returns
Type Description
PackedChunkPosition

Implicit(PackedChunkPosition to Vector3i)

Declaration
public static implicit operator Vector3i(PackedChunkPosition packed)
Parameters
Type Name Description
PackedChunkPosition packed
Returns
Type Description
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>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾