Exemplo n.º 1
0
        public void ReadFromXML(string file)
        {
            XElement          Root             = XElement.Load(file);
            DecalPatternTable TableInformation = ReflectionHelpers.ConvertToPropertyFromXML <DecalPatternTable>(Root);

            this.DecalPattern = TableInformation.DecalPattern;
        }
Exemplo n.º 2
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);
        }