Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public FormatUnion(
     DefinitionManager manager, JObject src
     ) : base(manager, src)
 {
     decider    = JsonHelpers.Decider(manager, src);
     formatDefs = JsonHelpers.Defs <FormatDef>(manager, src, "formats");
 }