docs.unity3d.com
    目次を表示する/隠す

    Struct QueryMatchID

    Identifies a query and an instance of a match for this query

    Namespace: Unity.MARS.Query
    Syntax
    public struct QueryMatchID : IEquatable<QueryMatchID>

    Fields

    NullQuery

    Null value for empty query match id

    Declaration
    public static QueryMatchID NullQuery
    Field Value
    Type Description
    QueryMatchID

    Properties

    matchID

    Identifies an instance of a query match. This is distinct from the ID of the data that fulfills the query.

    Declaration
    public readonly int matchID { get; }
    Property Value
    Type Description
    Int32

    queryID

    Identifies the query itself

    Declaration
    public readonly int queryID { get; }
    Property Value
    Type Description
    Int32

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(QueryMatchID)

    Declaration
    public bool Equals(QueryMatchID id)
    Parameters
    Type Name Description
    QueryMatchID id
    Returns
    Type Description
    Boolean

    Generate()

    Generate a new query match id

    Declaration
    public static QueryMatchID Generate()
    Returns
    Type Description
    QueryMatchID

    The newly generated query match id

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    IsNullQuery()

    Checks whether this query ID has actually been initialized

    Declaration
    public bool IsNullQuery()
    Returns
    Type Description
    Boolean

    NextMatch()

    Next match id

    Declaration
    public QueryMatchID NextMatch()
    Returns
    Type Description
    QueryMatchID

    The newly generated query match id

    SameQuery(QueryMatchID)

    Checks whether this ID refers to the same query as another ID

    Declaration
    public bool SameQuery(QueryMatchID otherID)
    Parameters
    Type Name Description
    QueryMatchID otherID

    QueryMatchID to compare against

    Returns
    Type Description
    Boolean

    True if both IDs refer to the same query, false otherwise

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)