using System;
namespace Jovian.EncounterSystem {
/// Cross-table reference. Rename-safe — the stored key is a GUID.
[Serializable]
public struct EncounterLink {
public EncounterTable table;
public string internalId;
/// O(1) lookup via . Returns null if the
/// table is missing or the id can't be found.
public IEncounter Resolve() {
if(table == null || string.IsNullOrEmpty(internalId)) {
return null;
}
return table.Resolve(internalId);
}
}
}