• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# CrystalMpq.MpqFileStream类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



MpqFileStream类属于CrystalMpq命名空间,在下文中一共展示了MpqFileStream类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

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


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


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


示例4: Header

	   public Header(MpqFileStream stream)
	   {
		   DeadBeef = stream.ReadInt32();
		   SnoType  = stream.ReadInt32();
		   unknown1 = stream.ReadInt32();
		   unknown2 = stream.ReadInt32();
	   }
开发者ID:fortenbt,项目名称:mooege,代码行数:7,代码来源:MpqDataTypes.cs


示例5: 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:professorylchen,项目名称:mooege,代码行数:34,代码来源:SceneSpecification.cs


示例6: PowerDef

        public List<BuffDef> Buffs = new List<BuffDef>(); //4

        public PowerDef(MpqFileStream stream)
        {
            TagMap = stream.ReadSerializedItem<TagMap>();
            stream.Position += (2 * 4);
            GeneralTagMap = stream.ReadSerializedItem<TagMap>();
            stream.Position += (2 * 4);
            PVPGeneralTagMap = stream.ReadSerializedItem<TagMap>();
            stream.Position += (2 * 4);
            ContactTagMap0 = stream.ReadSerializedItem<TagMap>();
            ContactTagMap1 = stream.ReadSerializedItem<TagMap>();
            ContactTagMap2 = stream.ReadSerializedItem<TagMap>();
            ContactTagMap3 = stream.ReadSerializedItem<TagMap>();
            stream.Position += (8 * 4);
            PVPContactTagMap0 = stream.ReadSerializedItem<TagMap>();
            PVPContactTagMap1 = stream.ReadSerializedItem<TagMap>();
            PVPContactTagMap2 = stream.ReadSerializedItem<TagMap>();
            PVPContactTagMap3 = stream.ReadSerializedItem<TagMap>();
            stream.Position += (8 * 4);
            I0 = stream.ReadValueS32();
            ActColFlags1 = new ActorCollisionFlags(stream);
            ActColFlags2 = new ActorCollisionFlags(stream);
            stream.Position += 4;
            for (int i = 0; i < 4; i++)
            {
                Buffs.Add(new BuffDef(stream));
                stream.Position += (2 * 4);
            }
        }
开发者ID:God601,项目名称:mooege,代码行数:30,代码来源:Power.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:Naxp,项目名称:mooege,代码行数:30,代码来源:Common.cs


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


示例9: RGBAColor

 /// <summary>
 /// Reads RGBAColor from given MPQFileStream.
 /// </summary>
 /// <param name="stream">The MPQFileStream to read from.</param>
 public RGBAColor(MpqFileStream stream)
 {
     var buf = new byte[4];
     stream.Read(buf, 0, 4);
     Red = buf[0];
     Green = buf[1];
     Blue = buf[2];
     Alpha = buf[3];
 }
开发者ID:wow4all,项目名称:mooege,代码行数:13,代码来源:RGBAColor.cs


示例10: TagMap

		   public TagMap(MpqFileStream stream)
		   {
			   tagmapsize = stream.ReadInt32();
			   TagMapEntry = new TagMapEntry[tagmapsize];
			   for (int i = 0; i < tagmapsize; i++)
			   {
				   TagMapEntry[i] = new TagMapEntry(stream);
			   }
		   }
开发者ID:fortenbt,项目名称:mooege,代码行数:9,代码来源:MpqDataTypes.cs


示例11: FileRead

 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Min = new Vector3D();
     Min.FileRead(stream, stream.Position);
     stream.Position = offset + 12;
     Max = new Vector3D();
     Max.FileRead(stream, stream.Position);
 }
开发者ID:starcasters,项目名称:type-extractor,代码行数:9,代码来源:classgenerator-output.cs


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


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


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


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


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


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


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


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


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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# CsJni.JniEnvironment类代码示例发布时间:2022-05-24
下一篇:
C# CrystalMpq.MpqFile类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap