当前位置: 首页>>代码示例>>C#>>正文


C# MpqFileStream.ReadValueS32方法代码示例

本文整理汇总了C#中CrystalMpq.MpqFileStream.ReadValueS32方法的典型用法代码示例。如果您正苦于以下问题:C# MpqFileStream.ReadValueS32方法的具体用法?C# MpqFileStream.ReadValueS32怎么用?C# MpqFileStream.ReadValueS32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CrystalMpq.MpqFileStream的用法示例。


在下文中一共展示了MpqFileStream.ReadValueS32方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SceneSpecification

        /// <summary>
        /// Reads SceneSpecification from given MPQFileStream.
        /// </summary>
        /// <param name="stream">The MPQFileStream to read from.</param>
        public SceneSpecification(MpqFileStream stream)
        {
            CellZ = stream.ReadValueS32();
            Cell = new Vector2D(stream);
            SNOLevelAreas = new int[4];

            for (int i = 0; i < SNOLevelAreas.Length; i++)
            {
                SNOLevelAreas[i] = stream.ReadValueS32();
            }

            SNOPrevWorld = stream.ReadValueS32();
            Unknown1 = stream.ReadValueS32();
            SNOPrevLevelArea = stream.ReadValueS32();
            SNONextWorld = stream.ReadValueS32();
            Unknown2 = stream.ReadValueS32();
            SNONextLevelArea = stream.ReadValueS32();
            SNOMusic = stream.ReadValueS32();
            SNOCombatMusic = stream.ReadValueS32();
            SNOAmbient = stream.ReadValueS32();
            SNOReverb = stream.ReadValueS32();
            SNOWeather = stream.ReadValueS32();
            SNOPresetWorld = stream.ReadValueS32();
            Unknown3 = stream.ReadValueS32();
            Unknown4 = stream.ReadValueS32();
            Unknown5 = stream.ReadValueS32();
            stream.Position += (9 * 4);
            ClusterID = stream.ReadValueS32();
            SceneCachedValues = new SceneCachedValues(stream);
        }
开发者ID:loonbg,项目名称:mooege,代码行数:34,代码来源:SceneSpecification.cs

示例2: Read

 public void Read(MpqFileStream stream)
 {
     this.SNOSpawn = stream.ReadValueS32();
     this.Probability = stream.ReadValueS32();
     this.I1 = stream.ReadValueS32();
     this.I2 = stream.ReadValueS32();
 }
开发者ID:wow4all,项目名称:mooege,代码行数:7,代码来源:Encounter.cs

示例3: Read

        public void Read(MpqFileStream stream)
        {
            this.SNOPower = stream.ReadValueS32();
            this.Category = (ActiveSkillCategory)stream.ReadValueS32();
            this.ReqLevel = stream.ReadValueS32();
            this.I2 = stream.ReadValueS32();

        }
开发者ID:wow4all,项目名称:mooege,代码行数:8,代码来源:SkillKit.cs

示例4: ItemSpecifierData

 public ItemSpecifierData(MpqFileStream stream)
 {
     ItemGBId = stream.ReadValueS32();
     I0 = stream.ReadValueS32();
     for (int i = 0; i > 3; i++)
     {
         GBIdAffixes[i] = stream.ReadValueS32();
     }
     I1 = stream.ReadValueS32();
 }
开发者ID:ncoop23,项目名称:mooege,代码行数:10,代码来源:Recipe.cs

示例5: Read

 public void Read(MpqFileStream stream)
 {
     this.Name = stream.ReadString(128, true);
     this.Type = (MarkerType)stream.ReadValueS32();
     this.PRTransform = new PRTransform(stream);
     this.SNOHandle = new SNOHandle(stream);
     this.TagMap = stream.ReadSerializedItem<TagMap>();
     stream.Position += 8;
     this.MarkerLinksCount = stream.ReadValueS32();
     this.MarkerLinks = stream.ReadSerializedData<MarkerLink>();
     stream.Position += (3 * 4);
 }
开发者ID:loonbg,项目名称:mooege,代码行数:12,代码来源:MarkerSet.cs

示例6: Read

 public void Read(MpqFileStream stream)
 {
     this.SNOPower = stream.ReadValueS32();
     this.Category = (ActiveSkillCategory)stream.ReadValueS32();
     this.SkillGroup = stream.ReadValueS32();
     this.ReqLevel = stream.ReadValueS32();
     this.RuneNone_ReqLevel = stream.ReadValueS32();
     this.RuneA_ReqLevel = stream.ReadValueS32();
     this.RuneB_ReqLevel = stream.ReadValueS32();
     this.RuneC_ReqLevel = stream.ReadValueS32();
     this.RuneD_ReqLevel = stream.ReadValueS32();
     this.RuneE_ReqLevel = stream.ReadValueS32();
 }
开发者ID:loonbg,项目名称:mooege,代码行数:13,代码来源:SkillKit.cs

示例7: ScriptFormula

        public ScriptFormula(MpqFileStream stream)
        {
            this.I0 = stream.ReadValueS32();
            this.I1 = stream.ReadValueS32();
            this.I2 = stream.ReadValueS32();
            this.I3 = stream.ReadValueS32();
            this.I4 = stream.ReadValueS32();
            this.NameSize = stream.ReadValueS32();
            this.I5 = stream.ReadValueS32();
            this.OpcodeSize = stream.ReadValueS32();
            this.OpCodeName = stream.ReadStringZ(Encoding.ASCII);
 
            switch(NameSize % 4)
            {
                case 0:
                    break;
                case 1:
                    stream.Position += 3;
                    break;
                case 2:
                    stream.Position += 2;
                    break;
                case 3:
                    stream.Position += 1;
                    break;

            }
            this.OpCodeArray = new byte[OpcodeSize];
            stream.Read(OpCodeArray, 0, OpcodeSize);
        }
开发者ID:n3rus,项目名称:mooege,代码行数:30,代码来源:Common.cs

示例8: SceneCachedValues

 /// <summary>
 /// Reads SceneCachedValues from given MPQFileStream.
 /// </summary>
 /// <param name="stream">The MPQFileStream to read from.</param>
 public SceneCachedValues(MpqFileStream stream)
 {
     Unknown1 = stream.ReadValueS32();
     Unknown2 = stream.ReadValueS32();
     Unknown3 = stream.ReadValueS32();
     AABB1 = new AABB(stream);
     AABB2 = new AABB(stream);
     Unknown4 = new int[4];
     for (int i = 0; i < Unknown4.Length; i++)
     {
         Unknown4[i] = stream.ReadValueS32();
     }
     Unknown5 = stream.ReadValueS32();
 }
开发者ID:keltins,项目名称:mooege,代码行数:18,代码来源:SceneCachedValues.cs

示例9: Read

 public void Read(MpqFileStream stream)
 {
     this.I0 = stream.ReadValueS32();
     // Maybe this should stay a Char Array instead of a string. - DarkLotus
     this.Name = stream.ReadString(64, true);
     this.TriggeredEvent.Read(stream);
 }
开发者ID:Naxp,项目名称:mooege,代码行数:7,代码来源:EffectGroup.cs

示例10: Read

 public void Read(MpqFileStream stream)
 {
     this.I0 = stream.ReadValueS32();
     this.SNOSubTreasureClass = stream.ReadValueS32();
     this.Percentage = stream.ReadValueF32();
     this.I1 = stream.ReadValueS32();
     this.GBIdQualityClass = stream.ReadValueS32();
     this.I2 = stream.ReadValueS32();
     this.I3 = stream.ReadValueS32();
     this.SNOCondition = stream.ReadValueS32();
     this.ItemSpecifier = new ItemSpecifierData(stream);
     this.I5 = stream.ReadValueS32();
     this.I4 = new int[4];
     for (int i = 0; i < 4; i++)
         this.I4[i] = stream.ReadValueS32();
     this.I6 = stream.ReadValueS32();
 }
开发者ID:wow4all,项目名称:mooege,代码行数:17,代码来源:TreasureClass.cs

示例11: QuestUnassignedStep

        public QuestUnassignedStep(MpqFileStream stream)
        {
            I0 = stream.ReadValueS32();
            stream.Position += 4;       // unaccounted in xml
            stream.Position += (2 * 4);
            StepObjectiveSets = stream.ReadSerializedData<QuestStepObjectiveSet>();

            stream.Position += (2 * 4);
            StepFailureConditionsSets = stream.ReadSerializedData<QuestStepFailureConditionSet>();
        }
开发者ID:ripper47,项目名称:mooege,代码行数:10,代码来源:Quest.cs

示例12: Read

        public void Read(MpqFileStream stream)
        {
            TagMapSize = stream.ReadValueS32();
            TagMapEntries = new TagMapEntry[TagMapSize];

            for (int i = 0; i < TagMapSize; i++)
            {
                TagMapEntries[i] = new TagMapEntry(stream);
            }
        }
开发者ID:ncoop23,项目名称:mooege,代码行数:10,代码来源:Common.cs

示例13: Header

 public Header(MpqFileStream stream)
 {
     this.DeadBeef = stream.ReadValueS32();
     this.SnoType = stream.ReadValueS32();
     this.Unknown1 = stream.ReadValueS32();
     this.Unknown2 = stream.ReadValueS32();
     this.SNOId = stream.ReadValueS32();
     this.Unknown3 = stream.ReadValueS32();
     this.Unknown4 = stream.ReadValueS32();
 }
开发者ID:ncoop23,项目名称:mooege,代码行数:10,代码来源:Common.cs

示例14: WaypointInfo

 public WaypointInfo(MpqFileStream stream)
 {
     SNOWorld = stream.ReadValueS32();
     SNOLevelArea = stream.ReadValueS32();
     I0 = stream.ReadValueS32();
     I1 = stream.ReadValueS32();
     I2 = stream.ReadValueS32();
     SNOQuestRange = stream.ReadValueS32();
     I3 = stream.ReadValueS32();
 }
开发者ID:loonbg,项目名称:mooege,代码行数:10,代码来源:Act.cs

示例15: NavMeshDef

            public NavMeshDef(MpqFileStream stream)
            {
                this.SquaresCountX = stream.ReadValueS32();
                this.SquaresCountY = stream.ReadValueS32();
                this.Int0 = stream.ReadValueS32();
                this.NavMeshSquareCount = stream.ReadValueS32();
                this.Float0 = stream.ReadValueF32();
                this.Squares = stream.ReadSerializedData<NavMeshSquare>(this.NavMeshSquareCount);

                stream.Position += (3 * 4);
                this.Filename = stream.ReadString(256, true);
            }
开发者ID:keltins,项目名称:mooege,代码行数:12,代码来源:Scene.cs


注:本文中的CrystalMpq.MpqFileStream.ReadValueS32方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。