Example #1
0
        public EnumBuilder(BuilderConfig config, StructuredDataInfo info, STUFieldJSON field) : base(config, info)
        {
            _hash  = uint.Parse(field.Type, NumberStyles.HexNumber);
            _field = field;

            Name = Info.GetEnumName(_hash);
        }
Example #2
0
        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);
            }
        }
Example #3
0
        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)");
                }
            }
        }
Example #4
0
 protected ClassBuilder(BuilderConfig config, StructuredDataInfo info)
 {
     Config = config;
     Info   = info;
 }