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


C# MpqFileStream.ReadString方法代码示例

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


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

示例1: GizmoLocSpawnType

 public GizmoLocSpawnType(MpqFileStream stream)
 {
     stream.Position += 8;
     this.SpawnEntry = stream.ReadSerializedData<GizmoLocSpawnEntry>();
     this.S0 = stream.ReadString(80, true);
     this.S1 = stream.ReadString(256, true);
 }
开发者ID:Velhenn,项目名称:mooege,代码行数:7,代码来源:LevelArea.cs

示例2: 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

示例3: Read

 public void Read(MpqFileStream stream)
 {
     SNOConv = stream.ReadValueS32();
     I0 = stream.ReadValueS32();
     I1 = stream.ReadValueS32();
     I2 = stream.ReadValueS32();
     GbidItem = stream.ReadValueS32();
     Noname1 = stream.ReadString(128, true);
     Noname2 = stream.ReadString(128, true);
     SNOQuestCurrent = stream.ReadValueS32();
     I3 = stream.ReadValueS32();
     SNOQuestAssigned = stream.ReadValueS32();
     SNOQuestActive = stream.ReadValueS32();
     SNOQuestComplete = stream.ReadValueS32();
     SNOQuestRange = stream.ReadValueS32();
     SNOLevelArea = stream.ReadValueS32();
 }
开发者ID:wow4all,项目名称:mooege,代码行数:17,代码来源:ConversationList.cs

示例4: 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

示例5: Read

        public void Read(MpqFileStream stream)
        {
            this.Name = stream.ReadString(128, true);
            this.Int0 = stream.ReadValueS32();
            this.PRTransform = new PRTransform(stream);
            this.SNOName = new SNOName(stream);

            this.TagMap = stream.ReadSerializedItem<TagMap>();

            // Un sure about these 3 ints, 010template isnt the same as snodata.xml - DarkLotus
            this.IntTagMap = stream.ReadValueS32();
            Int1 = stream.ReadValueS32();
            Int2 = stream.ReadValueS32();

            var pointerMarkerLinks = stream.GetSerializedDataPointer();
            stream.Position += (3 * 4);
        }
开发者ID:ncoop23,项目名称:mooege,代码行数:17,代码来源:MarkerSet.cs

示例6: 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>();

            // Un sure about these 3 ints, 010template isnt the same as snodata.xml - DarkLotus
            // IntTagMap && Int2 are always 0 for beta. leave it here only because xml does not match either -farmy
            this.IntTagMap = stream.ReadValueS32();
            Int1 = stream.ReadValueS32();
            var int2 = stream.ReadValueS32();
            this.MarkerLinks = stream.ReadSerializedData<MarkerLink>();
            stream.Position += (3 * 4);
        }
开发者ID:wow4all,项目名称:mooege,代码行数:17,代码来源:MarkerSet.cs

示例7: Read

        public void Read(MpqFileStream stream)
        {
            this.Name = stream.ReadString(128, true);
            this.ClusterId = stream.ReadValueS32();
            this.GroupCount = stream.ReadValueS32();
            stream.Position += (2 * 4);
            this.SubSceneGroups = stream.ReadSerializedData<SubSceneGroup>();

            this.Default = new SubSceneGroup(stream);
        }
开发者ID:Naxp,项目名称:mooege,代码行数:10,代码来源:World.cs

示例8: 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

示例9: Read

 public void Read(MpqFileStream stream)
 {
     this.UHash = stream.ReadValueS32();
     this.S0 = stream.ReadString(64, true);
     this.F0 = stream.ReadValueF32();
 }
开发者ID:ncoop23,项目名称:mooege,代码行数:6,代码来源:Globals.cs

示例10: FileRead

 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadString(64);
     stream.Position = offset + 64;
     Field1 = stream.ReadValueS32();
     stream.Position = offset + 68;
     Field2 = new AABB();
     Field2.FileRead(stream, stream.Position);
     stream.Position = offset + 92;
     wsBounds = new Sphere();
     wsBounds.FileRead(stream, stream.Position);
     stream.Position = offset + 108;
     Field4 = new PRSTransform();
     Field4.FileRead(stream, stream.Position);
     stream.Position = offset + 140;
     Field5 = new PRSTransform();
     Field5.FileRead(stream, stream.Position);
     stream.Position = offset + 172;
     Field6 = new PRSTransform();
     Field6.FileRead(stream, stream.Position);
     stream.Position = offset + 204;
     Field7 = stream.ReadValueS32();
     stream.Position = offset + 208;
     serShapes = new SerializeData();
     serShapes.FileRead(stream, stream.Position);
     stream.Position = offset + 216;
     //still checking variablearrays
     Shapes = new List<CollisionShape>();
     for(int i = 0; i < (int)(serShapes.Field1 / 68); i++)
     {
     stream.Position = serShapes.Field0 + 16 + (68*i) ;
         CollisionShape temp12_Shapes;
         temp12_Shapes = new CollisionShape();
         temp12_Shapes.FileRead(stream, stream.Position);
         _Shapes.Add(temp12_Shapes);
     }
     stream.Position = offset + 220;
     serConstraint = new SerializeData();
     serConstraint.FileRead(stream, stream.Position);
     stream.Position = offset + 228;
     //still checking variablearrays
     Constraint = new List<ConstraintParameters>();
     for(int i = 0; i < (int)(serConstraint.Field1 / 276); i++)
     {
     stream.Position = serConstraint.Field0 + 16 + (276*i) ;
         ConstraintParameters temp12_Constraint;
         temp12_Constraint = new ConstraintParameters();
         temp12_Constraint.FileRead(stream, stream.Position);
         _Constraint.Add(temp12_Constraint);
     }
     stream.Position = offset + 232;
     snoParticleSystem = stream.ReadValueS32();
 }
开发者ID:starcasters,项目名称:type-extractor,代码行数:54,代码来源:classgenerator-output.cs

示例11: 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>();
               
                if (SquaresCountX < 64 && SquaresCountY < 64)
                {
                    WalkGrid = new byte[64, 64];
                }
                else if (SquaresCountX < 128 && SquaresCountY < 128)
                {
                    WalkGrid = new byte[128, 128]; //96*96
                }
                else if (SquaresCountX > 128 || SquaresCountY > 128)
                {
                    WalkGrid = new byte[256, 256];
                }


                // Loop thru each NavmeshSquare in the array, and fills the grid
                for (int i = 0; i < NavMeshSquareCount; i++)
                {
                    WalkGrid[i % SquaresCountX, i / SquaresCountY] = (byte)(Squares[i].Flags & Scene.NavCellFlags.AllowWalk);
                   // Set the grid to 0x1 if its walkable, left as 0 if not. - DarkLotus
                }

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


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