Class QueryResult
Data returned from a particular query
Syntax
public class QueryResult : IEquatable<QueryResult>
Constructors
QueryResult()
Declaration
QueryResult(QueryMatchID)
Declaration
public QueryResult(QueryMatchID id)
Parameters
Fields
queryMatchId
Declaration
public QueryMatchID queryMatchId
Field Value
Properties
DataID
Declaration
public int DataID { get; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Equals(QueryResult)
Declaration
public bool Equals(QueryResult other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Reset()
Declaration
ResolveValue<T>(IUsesMARSData<T>)
Gets the value for a particular type of data for a given data id
Declaration
public T ResolveValue<T>(IUsesMARSData<T> dataUser)
Parameters
Type |
Name |
Description |
IUsesMARSData<T> |
dataUser |
The functionality subscriber that will actually do the data lookup
|
Returns
Type |
Description |
T |
The typed value for the given data id
|
Type Parameters
Name |
Description |
T |
The type of data to return
|
ResolveValue<T>(IUsesMARSTrackableData<T>)
Gets the value for a particular type of data for a given data id
Declaration
public T ResolveValue<T>(IUsesMARSTrackableData<T> dataUser)
where T : IMRTrackable
Parameters
Type |
Name |
Description |
IUsesMARSTrackableData<T> |
dataUser |
The functionality subscriber that will actually do the data lookup
|
Returns
Type |
Description |
T |
The typed value for the given data id
|
Type Parameters
Name |
Description |
T |
The type of data to return
|
SetTrait(String, Object)
Declaration
public void SetTrait(string traitName, object value)
Parameters
TryGetTrait(String, out Object)
This method exists in order for MARS to compile before type-specific code is generated. Use the type-specific version of this method
Declaration
public bool TryGetTrait(string traitName, out object value)
Parameters
Returns
TryGetTrait<T>(String, out T)
Declaration
public bool TryGetTrait<T>(string traitName, out T value)
where T : struct
Parameters
Type |
Name |
Description |
String |
traitName |
|
T |
value |
|
Returns
Type Parameters
Operators
Equality(QueryResult, QueryResult)
Equality operators check if their operands are equal
Declaration
public static bool operator ==(QueryResult left, QueryResult right)
Parameters
Returns
Type |
Description |
Boolean |
True if equal
|
Inequality(QueryResult, QueryResult)
Inequality operators check if their operands are are not equal.
Declaration
public static bool operator !=(QueryResult left, QueryResult right)
Parameters
Returns
Type |
Description |
Boolean |
True if not equal
|