public UnionDef(DefinitionManager manager, JObject src) : base(manager, src) { elementDefs = JsonHelpers.Defs <ElementDef>(manager, src, "elements"); decider = JsonHelpers.Decider(manager, src); _canContainFormIds = elementDefs.Any(d => d.canContainFormIds); }
public FormatUnion( DefinitionManager manager, JObject src ) : base(manager, src) { decider = JsonHelpers.Decider(manager, src); formatDefs = JsonHelpers.Defs <FormatDef>(manager, src, "formats"); }