Api Sandbox ResourceExtension<T>
class

ResourceExtension<T>

public abstract class ResourceExtension<T> : 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.

Properties

Name Type Description
ExtensionDefault Boolean If true then this is returned when calling FindForResourceOrDefault if no other extension is found targetting a specific resource.
ExtensionTargets List<T> Extensions can target more than one resource.
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.ResourceExtension<T>