Ejemplo n.º 1
0
        public void ReadFromFile(BinaryReader reader)
        {
            unk0 = reader.ReadUInt32();
            uint count1 = reader.ReadUInt32();
            uint count2 = reader.ReadUInt32();

            Items = new HumanMaterialsItem[count1];
            for (int i = 0; i < Items.Length; i++)
            {
                HumanMaterialsItem Item = new HumanMaterialsItem();
                Item.ID                  = reader.ReadUInt32();
                Item.MaterialName        = StringHelpers.ReadStringBuffer(reader, 32);
                Item.Flags               = (EHumanMaterialsTableItemFlags)reader.ReadUInt32();
                Item.SoundMaterialSwitch = XBinAkHashName.ConstructAndReadFromFile(reader);
                Item.StepParticles       = reader.ReadUInt32();
                Items[i]                 = Item;
            }
        }
        public void ReadFromFile(BinaryReader reader)
        {
            unk0 = reader.ReadUInt32();
            uint count1 = reader.ReadUInt32();
            uint count2 = reader.ReadUInt32();

            Items = new MaterialsPhysicsItem[count1];
            for (int i = 0; i < Items.Length; i++)
            {
                MaterialsPhysicsItem Item = new MaterialsPhysicsItem();
                Item.ID              = reader.ReadUInt32();
                Item.MaterialName    = StringHelpers.ReadStringBuffer(reader, 32);
                Item.SoundSwitch     = XBinAkHashName.ConstructAndReadFromFile(reader);
                Item.GUID_Part0      = reader.ReadUInt32();
                Item.GUID_Part1      = reader.ReadUInt32();
                Item.StaticFriction  = reader.ReadSingle();
                Item.DynamicFriction = reader.ReadSingle();
                Item.Restitution     = reader.ReadSingle();
                Item.Poznamka        = StringHelpers.ReadStringBuffer(reader, 64);
                Items[i]             = Item;
            }
        }
Ejemplo n.º 3
0
        public void ReadFromFile(BinaryReader reader)
        {
            unk0 = reader.ReadUInt32();
            uint count1 = reader.ReadUInt32();
            uint count2 = reader.ReadUInt32();

            Items = new MaterialsShotsItem[count1];
            for (int i = 0; i < Items.Length; i++)
            {
                MaterialsShotsItem Item = new MaterialsShotsItem();
                Item.ID           = reader.ReadUInt32();
                Item.MaterialName = StringHelpers.ReadStringBuffer(reader, 32);
                Item.GUID_Part0   = reader.ReadUInt32();
                Item.GUID_Part1   = reader.ReadUInt32();
                Item.SoundSwitch  = XBinAkHashName.ConstructAndReadFromFile(reader);
                Item.Penetration  = reader.ReadSingle();
                Item.Particle     = reader.ReadUInt32();
                Item.Decal        = reader.ReadUInt32();
                Item.DecalCold    = reader.ReadUInt32();
                Items[i]          = Item;
            }
        }
Ejemplo n.º 4
0
 public HumanMaterialsItem()
 {
     SoundMaterialSwitch = new XBinAkHashName();
 }