ResourceExtension<T,TSelf>class

An extension of ResourceExtension[t], this gives special helper methods for retrieving resources targetting specific assets.

object→ResourceExtension<T>→ResourceExtension<T,TSelf>
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.ResourceExtension<T,TSelf> : Sandbox.ResourceExtension<T>

Constructors1

Showing 1 constructors

public ResourceExtension<T,TSelf>()PUBLICCONSTRUCTOR

Methods4

Showing 4 methods

public static System.Collections.Generic.IEnumerable`1<TSelf> FindAllForResource(Sandbox.Resource r)PUBLICSTATIC

ParameterTypeDescription
rResource—
Returns:IEnumerable<TSelf>—

public static TSelf FindDefault()PUBLICSTATIC

Returns:TSelf—

public static TSelf FindForResource(Sandbox.Resource r)PUBLICSTATIC

ParameterTypeDescription
rResource—
Returns:TSelf—

public static TSelf FindForResourceOrDefault(Sandbox.Resource r)PUBLICSTATIC

ParameterTypeDescription
rResource—
Returns:TSelf—

On this page