Ejemplo n.º 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);
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 3
0
        public InstanceBuilder(StructuredDataInfo info, InstanceNew instance) : base(info)
        {
            _instance = instance;

            Name = Info.GetInstanceName(_instance.Hash2);
            if (instance.ParentHash2 != 0)
            {
                _parentName = Info.GetInstanceName(_instance.ParentHash2);

                if (!info.Instances.ContainsKey(_instance.ParentHash2))
                {
                    Console.Out.WriteLine($"pls fix: {_instance.Hash2:X32}'s parent is missing (add to ignored)");
                }
            }
        }
Ejemplo n.º 4
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)");
                }
            }
        }
Ejemplo n.º 5
0
 public EnumBuilder(StructuredDataInfo info, FieldNew field) : base(info)
 {
     _field = field;
     Name   = Info.GetEnumName(_hash);
 }
Ejemplo n.º 6
0
 protected ClassBuilder(StructuredDataInfo info)
 {
     Info = info;
 }
Ejemplo n.º 7
0
 protected ClassBuilder(BuilderConfig config, StructuredDataInfo info)
 {
     Config = config;
     Info   = info;
 }