ResourceExtension<T>class

A GameResource type that adds extended properties to another resource type. You should prefer to use the type with to generic arguments, and define your own type as the second argument. That way you get access to the helper methods.

objectGameResourceResourceExtension<T>
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public abstract class Sandbox.ResourceExtension<T> : Sandbox.GameResource

Constructors1

Showing 1 constructors

protected ResourceExtension<T>()PROTECTEDCONSTRUCTOR

Properties2

Showing 2 properties

public bool Sandbox.ResourceExtension<T>.ExtensionDefault { get; set; }PUBLICGETSET

If true then this is returned when calling FindForResourceOrDefault if no other extension is found targetting a specific resource.

Returns:bool

public System.Collections.Generic.List`1<T> Sandbox.ResourceExtension<T>.ExtensionTargets { get; set; }PUBLICGETSET

Extensions can target more than one resource.

Returns:List<T>

On this page