API ReferenceSandbox
public abstract class Sandbox.ResourceExtension<T> : Sandbox.GameResource
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.
Constructors
Showing 1 constructors
protected ResourceExtension<T>()
No results match this filter.
Properties
Showing 2 properties
public bool Sandbox.ResourceExtension<T>.ExtensionDefault { get; set; }
If true then this is returned when calling FindForResourceOrDefault if no other extension is found targetting a specific resource.
public System.Collections.Generic.List`1<T> Sandbox.ResourceExtension<T>.ExtensionTargets { get; set; }
Extensions can target more than one resource.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.ResourceExtension`1 |