Search Results for

    Show / Hide Table of Contents

    Struct Vector2IntCellValue

    A DataTableBase UnityEngine.Vector2Int cell reference.

    Namespace: GDX.DataTables.CellValues
    Syntax
    [Serializable]
    public struct Vector2IntCellValue

    Constructors

    | Improve this Doc View Source

    Vector2IntCellValue(DataTableBase, Int32, Int32)

    Creates a Vector2IntCellValue.

    Declaration
    public Vector2IntCellValue(DataTableBase dataTable, int rowIdentifier, int columnIdentifier)
    Parameters
    Type Name Description
    DataTableBase dataTable

    The referenced DataTableBase.

    System.Int32 rowIdentifier

    The unique row identifier to use when polling the dataTable.

    System.Int32 columnIdentifier

    The unique column identifier to use when polling the dataTable.

    Fields

    | Improve this Doc View Source

    ColumnIdentifier

    The unique column identifier used when accessing the DataTable.

    Declaration
    public int ColumnIdentifier
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    DataTable

    The DataTableBase polled for cell data.

    Declaration
    public DataTableBase DataTable
    Field Value
    Type Description
    DataTableBase
    | Improve this Doc View Source

    RowIdentifier

    The unique row identifier used when accessing the DataTable.

    Declaration
    public int RowIdentifier
    Field Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Get()

    Get the UnityEngine.Vector2Int value referenced from the DataTableBase.

    Declaration
    public Vector2Int Get()
    Returns
    Type Description
    UnityEngine.Vector2Int

    A UnityEngine.Vector2Int struct.

    Remarks

    This will evaluate if the version of the table matches the internally cached version, and will update the cached reference if necessary.

    | Improve this Doc View Source

    GetDataVersion()

    Get the internally cached version of the DataTableBase's data version.

    Declaration
    public ulong GetDataVersion()
    Returns
    Type Description
    System.UInt64

    A version number.

    | Improve this Doc View Source

    GetSupportedType()

    Get the Serializable.SerializableTypes which this struct supports.

    Declaration
    public static Serializable.SerializableTypes GetSupportedType()
    Returns
    Type Description
    Serializable.SerializableTypes

    A Serializable.SerializableTypes.

    | Improve this Doc View Source

    GetUnsafe()

    Get the cached value without a version check.

    Declaration
    public Vector2Int GetUnsafe()
    Returns
    Type Description
    UnityEngine.Vector2Int

    A UnityEngine.Vector2Int struct.

    Remarks

    This can respond with a default value if a Get() call has not been made yet to populate the internally cached value.

    | Improve this Doc View Source

    Set(Vector2Int, Boolean)

    Sets the cached value of the struct and by default, updates the associated DataTableBase.

    Declaration
    public void Set(Vector2Int newValue, bool updateTable = true)
    Parameters
    Type Name Description
    UnityEngine.Vector2Int newValue

    A UnityEngine.Vector2Int struct.

    System.Boolean updateTable

    Should the value be pushed back to the referenced DataTableBase cell?

    Remarks

    Updating the DataTableBase will update the cached table version.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.