API Referenceglobal
Pairclass
A pair of case- and order-insensitive tags, used as a key to look up a `Sandbox.Physics.CollisionRules.Result`.
object→Pair
Constructors1
Showing 1 constructors
public Pair(string left, string right)
Initializes from a pair of tags.
| Parameter | Type | Description |
|---|---|---|
| left | string | — |
| right | string | — |
No results match this filter.
Methods2
Showing 2 methods
public bool Contains(string tag)
Returns true if either `Sandbox.Physics.CollisionRules.Pair.Left` or `Sandbox.Physics.CollisionRules.Pair.Right` matches the given tag.
| Parameter | Type | Description |
|---|---|---|
| tag | string | — |
Returns:
bool—public virtual sealed System.Collections.Generic.IEnumerator`1<string> GetEnumerator()
Returns:
IEnumerator<string>—No results match this filter.
Properties2
Showing 2 properties
public string Sandbox.Physics.CollisionRules.Pair.Left { get; set; }
First of the two tags.
Returns:
string—public string Sandbox.Physics.CollisionRules.Pair.Right { get; set; }
Second of the two tags.
Returns:
string—No results match this filter.