예제 #1
0
 public DefFieldBase(DefTypeBase host, Field f, int idOffset)
 {
     HostType             = host;
     Id                   = f.Id + idOffset;
     AutoId               = Id;
     Name                 = f.Name;
     Type                 = f.Type;
     Comment              = f.Comment;
     Tags                 = DefUtil.ParseAttrs(f.Tags);
     IgnoreNameValidation = f.IgnoreNameValidation;
 }
예제 #2
0
 public DefTable(Table b)
 {
     Name             = b.Name;
     Namespace        = b.Namespace;
     Index            = b.Index;
     ValueType        = b.ValueType;
     Mode             = b.Mode;
     InputFiles       = b.InputFiles;
     Groups           = b.Groups;
     _patchInputFiles = b.PatchInputFiles;
     Comment          = b.Comment;
     Tags             = DefUtil.ParseAttrs(b.Tags);
     _outputFile      = b.OutputFile;
 }
예제 #3
0
 public DefBeanBase(Bean b)
 {
     Name              = b.Name;
     Namespace         = b.Namespace;
     Parent            = b.Parent;
     Id                = b.TypeId;
     IsValueType       = b.IsValueType;
     Comment           = b.Comment;
     Tags              = DefUtil.ParseAttrs(b.Tags);
     _externalTypeName = b.ExternalType;
     foreach (var field in b.Fields)
     {
         Fields.Add(CreateField(field, 0));
     }
 }