public EnumBuilder(BuilderConfig config, StructuredDataInfo info, STUFieldJSON field) : base(config, info) { _hash = uint.Parse(field.Type, NumberStyles.HexNumber); _field = field; Name = Info.GetEnumName(_hash); }
public InstanceBuilder(BuilderConfig config, StructuredDataInfo info, STUInstanceJSON instance) : base(config, info) { _instance = instance; Name = Info.GetInstanceName(_instance.Hash); if (instance.Parent != 0) { _parentName = Info.GetInstanceName(_instance.Parent); } }
public InstanceBuilder(BuilderConfig config, StructuredDataInfo info, STUInstanceJSON instance) : base(config, info) { _instance = instance; Name = Info.GetInstanceName(_instance.Hash); if (instance.Parent != 0) { _parentName = Info.GetInstanceName(_instance.Parent); if (!info.Instances.ContainsKey(_instance.Parent)) { Console.Out.WriteLine($"pls fix: {_instance.Hash:X32}'s parent is missing (add to ignored)"); } } }
protected ClassBuilder(BuilderConfig config, StructuredDataInfo info) { Config = config; Info = info; }