class ResourceExtension<T>

in global :: Sandbox

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.


public bool ExtensionDefault { get; set; }

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

public List<T> ExtensionTargets { get; set; }

Extensions can target more than one resource.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public string ResourceName { get; }

😔 No documentation found.

public string ResourcePath { get; }

😔 No documentation found.

public int ResourceId { get; }

😔 No documentation found.

public bool IsValid { get; }

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public void LoadFromJson( string json )

😔 No documentation found.

public int ResourceVersion { get; }

😔 No documentation found.

public JsonObject Serialize( )

😔 No documentation found.

public IEnumerable<string> GetReferencedPackages( )

😔 No documentation found.

public void StateHasChanged( )

😔 No documentation found.

public bool HasUnsavedChanges { get; }

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public void Deserialize( JsonObject jso )

😔 No documentation found.