Example #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);
 }
Example #2
0
 public GroupDef(DefinitionManager manager, JObject src)
     : base(manager, src)
 {
     childrenDefs = JsonHelpers.Defs <ElementDef>(
         manager, src, "children", true
         );
 }
Example #3
0
 public MembersDef(DefinitionManager manager, JObject src)
     : base(manager, src)
 {
     memberDefs         = JsonHelpers.Defs <ElementDef>(manager, src, "members");
     signatures         = GetSignatures();
     _canContainFormIds = memberDefs.Any(d => d.canContainFormIds);
 }
Example #4
0
 public FormatUnion(
     DefinitionManager manager, JObject src
     ) : base(manager, src)
 {
     decider    = JsonHelpers.Decider(manager, src);
     formatDefs = JsonHelpers.Defs <FormatDef>(manager, src, "formats");
 }
Example #5
0
 public StructDef(DefinitionManager manager, JObject src)
     : base(manager, src)
 {
     elementDefs        = JsonHelpers.Defs <ElementDef>(manager, src, "elements");
     sortKeyIndices     = JsonHelpers.List <int>(src, "sortKey");
     elementMap         = JsonHelpers.List <int>(src, "elementMap");
     _canContainFormIds = elementDefs.Any(d => d.canContainFormIds);
 }
Example #6
0
 public PluginFileDef(DefinitionManager manager, JObject src)
     : base(manager, src)
 {
     childrenDefs = JsonHelpers.Defs <ElementDef>(manager, src, "children");
     topGroups    = BuildTopGroupsMap();
 }
Example #7
0
 public CTDAFunctions(DefinitionManager manager, JObject src)
     : base(manager, src)
 {
     ctdaFunctions = JsonHelpers.Defs <CTDAFunction>(manager, src, "ctdaFunctions");
 }