Пример #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);
            MultiDecalPatternTable TableInformation = ReflectionHelpers.ConvertToPropertyFromXML <MultiDecalPatternTable>(Root);

            this.MultiDecalPattern = TableInformation.MultiDecalPattern;
        }
Пример #3
0
        public void ReadFromXML(string file)
        {
            XElement Root = XElement.Load(file);

            DecalGroupPattern   = ReflectionHelpers.ConvertToPropertyFromXML <DecalGroupPatternTable>(Root.Element("DecalGroupPatternTable"));
            DecalPattern        = ReflectionHelpers.ConvertToPropertyFromXML <DecalPatternTable>(Root.Element("DecalPatternTable"));
            GfxGlassBreakType   = ReflectionHelpers.ConvertToPropertyFromXML <GfxGlassBreakTypeTable>(Root.Element("GfxGlassBreakTypeTable"));
            GfxGlassMatTemplate = ReflectionHelpers.ConvertToPropertyFromXML <GfxGlassMatTemplateTable>(Root.Element("GfxGlassMatTemplateTable"));
            MultiDecalPattern   = ReflectionHelpers.ConvertToPropertyFromXML <MultiDecalPatternTable>(Root.Element("MultiDecalPatternTable"));
        }