Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Struct VersionNativeArray<TItem>

    Wrapper for NativeArray with versioning. Whenever the array is modified, the version is incremented.

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Fwt.Core.Collections
    Assembly: fwt.core.dll
    Syntax
    public struct VersionNativeArray<TItem> : IDisposable where TItem : unmanaged
    Type Parameters
    Name Description
    TItem

    Type of value in the array

    Fields

    Values

    The array itself.

    Declaration
    public NativeArray<TItem> Values
    Field Value
    Type Description
    NativeArray<TItem>

    Version

    Version of the array. Whenever the array is modified, this value is incremented.

    Declaration
    public long Version
    Field Value
    Type Description
    long

    Properties

    IsCreated

    Declaration
    public bool IsCreated { get; }
    Property Value
    Type Description
    bool

    IsDirty

    Declaration
    public bool IsDirty { get; }
    Property Value
    Type Description
    bool

    this[int]

    Declaration
    public TItem this[int index] { get; set; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    TItem

    Length

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    int

    Methods

    Dispose()

    Declaration
    public void Dispose()

    FillArray(TItem)

    Declaration
    public void FillArray(TItem value)
    Parameters
    Type Name Description
    TItem value

    Init(int, Allocator)

    Declaration
    public void Init(int itemsCount, Allocator allocator)
    Parameters
    Type Name Description
    int itemsCount
    Allocator allocator

    MarkDirty()

    Declaration
    public void MarkDirty()

    ResetDirty()

    Declaration
    public void ResetDirty()

    Implements

    IDisposable

    Extension Methods

    HashExtensions.GetHashCode_ValueType<TValue>(TValue, int)
    HashExtensions.GetHashCode_ValueType<TValue>(TValue, int)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    In this article
    Back to top Generated by DocFX