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