Class QueryArgs
Contains all the conditions and data a user can ask for in a single request
Namespace: Unity.MARS.Query
Syntax
public class QueryArgs
Fields
commonQueryData
Behavior around timing and recovery of queries
Declaration
public CommonQueryData commonQueryData
Field Value
Type | Description |
---|---|
CommonQueryData |
conditions
A list of configurable filters for what acceptable real world data fits this query
Declaration
public Conditions conditions
Field Value
Type | Description |
---|---|
Conditions |
exclusivity
Should other objects be able to query this same data?
Declaration
public Exclusivity exclusivity
Field Value
Type | Description |
---|---|
Exclusivity |
onAcquire
Callback to trigger when data matching the query has been acquired for the first time
Declaration
public Action<QueryResult> onAcquire
Field Value
Type | Description |
---|---|
Action<QueryResult> |
onLoss
Callback to trigger when the data related to the query has been lost
Declaration
public Action<QueryResult> onLoss
Field Value
Type | Description |
---|---|
Action<QueryResult> |
onMatchUpdate
Callback to trigger when data related to the query has been changed
Declaration
public Action<QueryResult> onMatchUpdate
Field Value
Type | Description |
---|---|
Action<QueryResult> |
onTimeout
Callback to trigger if data related to the query has not been found in the specified time period
Declaration
public Action<QueryArgs> onTimeout
Field Value
Type | Description |
---|---|
Action<QueryArgs> |
traitRequirements
A list of traits required for this query to function
Declaration
public ProxyTraitRequirements traitRequirements
Field Value
Type | Description |
---|---|
ProxyTraitRequirements |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |