API ReferenceSandbox
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.
Constructors1
Showing 1 constructors
protected ResourceExtension<T>()
No results match this filter.
Properties2
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.
Returns:
bool—public System.Collections.Generic.List`1<T> Sandbox.ResourceExtension<T>.ExtensionTargets { get; set; }
Extensions can target more than one resource.
Returns:
List<T>—No results match this filter.