示例#1
0
        public void ReadFromFile(BinaryReader reader)
        {
            uint DecalGroupPatternPtr   = reader.ReadUInt32();
            uint DecalPatternPtr        = reader.ReadUInt32();
            uint GfxGlassBreakTypePtr   = reader.ReadUInt32();
            uint GfxGlassMatTemplatePtr = reader.ReadUInt32();
            uint MultiDecalPatternPtr   = reader.ReadUInt32();

            uint DecalGroupPatternsValue = reader.ReadUInt32();

            DecalGroupPattern = new DecalGroupPatternTable();
            DecalGroupPattern.ReadFromFile(reader);

            uint DecalPatternValue = reader.ReadUInt32();

            DecalPattern = new DecalPatternTable();
            DecalPattern.ReadFromFile(reader);

            uint GfxGlassBreakTypeValue = reader.ReadUInt32();

            GfxGlassBreakType = new GfxGlassBreakTypeTable();
            GfxGlassBreakType.ReadFromFile(reader);

            uint GfxGlassMatTemplateValue = reader.ReadUInt32();

            GfxGlassMatTemplate = new GfxGlassMatTemplateTable();
            GfxGlassMatTemplate.ReadFromFile(reader);

            uint MultiDecalPatternValue = reader.ReadUInt32();

            MultiDecalPattern = new MultiDecalPatternTable();
            MultiDecalPattern.ReadFromFile(reader);
        }
示例#2
0
        public void ReadFromXML(string file)
        {
            XElement Root = XElement.Load(file);
            DecalGroupPatternTable TableInformation = ReflectionHelpers.ConvertToPropertyFromXML <DecalGroupPatternTable>(Root);

            this.DecalGroupPattern = TableInformation.DecalGroupPattern;
        }