Table of Contents

Class LoaderMetadataAttribute

Namespace
Core.Loaders
Assembly
Core.dll

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
object
Attribute
LoaderMetadataAttribute

Constructors

LoaderMetadataAttribute(string)

public LoaderMetadataAttribute(string loaderName)

Parameters

loaderName string

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