Pairclass

A pair of case- and order-insensitive tags, used as a key to look up a `Sandbox.Physics.CollisionRules.Result`.

objectPair
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.Physics.CollisionRules.Pair

Constructors1

Showing 1 constructors

public Pair(string left, string right)PUBLICCONSTRUCTOR

Initializes from a pair of tags.

ParameterTypeDescription
leftstring
rightstring

Methods2

Showing 2 methods

public bool Contains(string tag)PUBLIC

Returns true if either `Sandbox.Physics.CollisionRules.Pair.Left` or `Sandbox.Physics.CollisionRules.Pair.Right` matches the given tag.

ParameterTypeDescription
tagstring
Returns:bool

public virtual sealed System.Collections.Generic.IEnumerator`1<string> GetEnumerator()PUBLICVIRTUAL

Returns:IEnumerator<string>

Properties2

Showing 2 properties

public string Sandbox.Physics.CollisionRules.Pair.Left { get; set; }PUBLICGETSET

First of the two tags.

Returns:string

public string Sandbox.Physics.CollisionRules.Pair.Right { get; set; }PUBLICGETSET

Second of the two tags.

Returns:string

On this page