Table of Contents

Class ResourceSystem

Namespace
ReFuel.Resources
Assembly
ReFuel.dll
[EcsGuid("{3ECB798E-6BD8-473B-987A-51A8ED5660EF}")]
public class ResourceSystem : System<ResourceInfo>, IDisposable, IEnumerable<EcsNode>, ISystem<ResourceInfo>, ISystem, IRefEnumerable<ResourceInfo>, IEnumerable<ResourceInfo>, IEnumerable, ISystemCtor<ResourceInfo, ResourceInfo>, IInitializer, IInitializerBase, ISystemCtor<ResourceInfo, ResourceClass>, ISystemCtorBase
Inheritance
ResourceSystem
Implements
Inherited Members

Constructors

ResourceSystem()

public ResourceSystem()

Properties

Importers

public IReadOnlyList<IResourceImporter> Importers { get; }

Property Value

IReadOnlyList<IResourceImporter>

ImportersByExtension

public IReadOnlyDictionary<string, IResourceImporter> ImportersByExtension { get; }

Property Value

IReadOnlyDictionary<string, IResourceImporter>

ModelSearchPath

public SearchPath ModelSearchPath { get; }

Property Value

SearchPath

TextureSearchPath

public SearchPath TextureSearchPath { get; }

Property Value

SearchPath

Methods

AddImporter(IResourceImporter)

public void AddImporter(IResourceImporter importer)

Parameters

importer IResourceImporter

AddImporter<T>()

public void AddImporter<T>() where T : IResourceImporter, new()

Type Parameters

T

Construct(out ResourceInfo, ResourceClass)

public void Construct(out ResourceInfo data, ResourceClass cls)

Parameters

data ResourceInfo
cls ResourceClass

ImportResource(Stream, Entity?, string?)

public Task<ResourceResult> ImportResource(Stream stream, Entity? parent = null, string? fileName = null)

Parameters

stream Stream
parent Entity
fileName string

Returns

Task<ResourceResult>

ImportResource(Stream, IProcessReporter?, Entity?, string?)

public Task<ResourceResult> ImportResource(Stream stream, IProcessReporter? reporter, Entity? parent = null, string? fileName = null)

Parameters

stream Stream
reporter IProcessReporter
parent Entity
fileName string

Returns

Task<ResourceResult>

ImportResource(string, Entity?)

public Task<ResourceResult> ImportResource(string path, Entity? parent = null)

Parameters

path string
parent Entity

Returns

Task<ResourceResult>

ImportResource(string, IProcessReporter?, Entity?)

public Task<ResourceResult> ImportResource(string path, IProcessReporter? reporter, Entity? parent = null)

Parameters

path string
reporter IProcessReporter
parent Entity

Returns

Task<ResourceResult>

Initialize()

public void Initialize()

Events

Disposing

Raised when a resource has been disposed.

public event HookHandler<IResourceInfo> Disposing

Event Type

HookHandler<IResourceInfo>

Failed

Raised when a resource fails to be loaded.

public event HookHandler<IResourceInfo> Failed

Event Type

HookHandler<IResourceInfo>

Loaded

Raised when a new resource is loaded.

public event HookHandler<IResourceInfo> Loaded

Event Type

HookHandler<IResourceInfo>