Class ResourceSystem
[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
ImportersByExtension
public IReadOnlyDictionary<string, IResourceImporter> ImportersByExtension { get; }
Property Value
ModelSearchPath
public SearchPath ModelSearchPath { get; }
Property Value
TextureSearchPath
public SearchPath TextureSearchPath { get; }
Property Value
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
ResourceInfocls
ResourceClass
ImportResource(Stream, Entity?, string?)
public Task<ResourceResult> ImportResource(Stream stream, Entity? parent = null, string? fileName = null)
Parameters
Returns
ImportResource(Stream, IProcessReporter?, Entity?, string?)
public Task<ResourceResult> ImportResource(Stream stream, IProcessReporter? reporter, Entity? parent = null, string? fileName = null)
Parameters
stream
Streamreporter
IProcessReporterparent
EntityfileName
string
Returns
ImportResource(string, Entity?)
public Task<ResourceResult> ImportResource(string path, Entity? parent = null)
Parameters
Returns
ImportResource(string, IProcessReporter?, Entity?)
public Task<ResourceResult> ImportResource(string path, IProcessReporter? reporter, Entity? parent = null)
Parameters
path
stringreporter
IProcessReporterparent
Entity
Returns
Initialize()
public void Initialize()
Events
Disposing
Raised when a resource has been disposed.
public event HookHandler<IResourceInfo> Disposing
Event Type
Failed
Raised when a resource fails to be loaded.
public event HookHandler<IResourceInfo> Failed
Event Type
Loaded
Raised when a new resource is loaded.
public event HookHandler<IResourceInfo> Loaded