Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Struct VersionValue<T>

    Wrapper around a value with a version number and dirty flag. Whenever the value is set, the version number is incremented and the dirty flag is set to true.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Fwt.Core
    Assembly: fwt.core.dll
    Syntax
    public struct VersionValue<T>
    Type Parameters
    Name Description
    T

    Type of value this wrapper is for

    Fields

    IsDirty

    Flag indicating whether the value has been modified since this flag was last reset.

    Declaration
    public bool IsDirty
    Field Value
    Type Description
    bool

    Value

    The value itself. This is the value that is being wrapped.

    Declaration
    public T Value
    Field Value
    Type Description
    T

    Version

    Version number of the value. This number is incremented whenever the value is set.

    Declaration
    public long Version
    Field Value
    Type Description
    long

    Methods

    ResetVersion()

    Resets the dirty flag and version number.

    Declaration
    public void ResetVersion()

    SetDirty(bool)

    Sets the dirty flag and increments the version number if the flag is set to true.

    Declaration
    public void SetDirty(bool isDirty)
    Parameters
    Type Name Description
    bool isDirty

    if true, sets the dirty flag and increments verison. If false, resets the dirty flag

    SetValue(T)

    Sets the value and increments the version number.

    Declaration
    public void SetValue(T value)
    Parameters
    Type Name Description
    T value

    value to set

    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