Skip to content

XRef<V, T>

Namespace: Shadop.Archmage.Sdk

Represents a cross-table reference using a config ID and a resolved object reference.

public struct XRef<V, T>

Inheritance ObjectValueTypeXRef<V, T>

Remarks:

XRef is a two-part structure: it stores both the config ID (serialized to JSON) and the resolved reference (set during the binding phase). This enables lazy resolution of references after all data is loaded.

Config ID serialized to JSON; key for lookup during binding phase.

public V CfgId { get; set; }

V

Resolved object (not serialized). Populated by Atlas.BindRefs(); may be null if unresolved.

public T Ref { get; set; }

T

XRef(V cfgId, T refValue)

cfgId V

refValue T