Class LoaderMetadataAttribute
Attribute to define loader metadata for auto-registration. Apply to ILoaderFactory implementations for automatic discovery.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class LoaderMetadataAttribute : Attribute
- Inheritance
-
objectAttributeLoaderMetadataAttribute
Constructors
LoaderMetadataAttribute(string)
public LoaderMetadataAttribute(string loaderName)
Parameters
loaderNamestring
Properties
Description
Description of what data this loader handles.
public string Description { get; set; }
Property Value
- string
LoaderName
Unique loader name (e.g., "terrain", "water_provinces")
public string LoaderName { get; }
Property Value
- string
Priority
Loading priority (lower = loaded first). Default is 100. Use for controlling load order when loaders have dependencies.
public int Priority { get; set; }
Property Value
- int
Required
Whether this loader is required for the game to function. If true, failure to load will halt initialization.
public bool Required { get; set; }
Property Value
- bool