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


C# BinaryReader.ReadTagReference方法代码示例

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


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

示例1: ScenarioChildScenarioBlock

 public ScenarioChildScenarioBlock(BinaryReader binaryReader)
 {
     this.childScenario = binaryReader.ReadTagReference();
     this.padding = binaryReader.ReadBytes(16);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:5,代码来源:Scenario.cs

示例2: GlobalUiMultiplayerLevelBlock

 public GlobalUiMultiplayerLevelBlock(BinaryReader binaryReader)
 {
     this.mapID = binaryReader.ReadInt32();
     this.bitmap = binaryReader.ReadTagReference();
     this.skip = binaryReader.ReadBytes(576);
     this.skip0 = binaryReader.ReadBytes(2304);
     this.path = binaryReader.ReadString256();
     this.sortOrder = binaryReader.ReadInt32();
     this.flags = (Flags)binaryReader.ReadByte();
     this.padding1 = binaryReader.ReadBytes(3);
     this.maxTeamsNone = binaryReader.ReadByte();
     this.maxTeamsCTF = binaryReader.ReadByte();
     this.maxTeamsSlayer = binaryReader.ReadByte();
     this.maxTeamsOddball = binaryReader.ReadByte();
     this.maxTeamsKOTH = binaryReader.ReadByte();
     this.maxTeamsRace = binaryReader.ReadByte();
     this.maxTeamsHeadhunter = binaryReader.ReadByte();
     this.maxTeamsJuggernaut = binaryReader.ReadByte();
     this.maxTeamsTerritories = binaryReader.ReadByte();
     this.maxTeamsAssault = binaryReader.ReadByte();
     this.maxTeamsStub10 = binaryReader.ReadByte();
     this.maxTeamsStub11 = binaryReader.ReadByte();
     this.maxTeamsStub12 = binaryReader.ReadByte();
     this.maxTeamsStub13 = binaryReader.ReadByte();
     this.maxTeamsStub14 = binaryReader.ReadByte();
     this.maxTeamsStub15 = binaryReader.ReadByte();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:27,代码来源:Scenario.cs

示例3: AiScenarioMissionDialogueBlock

 public AiScenarioMissionDialogueBlock(BinaryReader binaryReader)
 {
     this.missionDialogue = binaryReader.ReadTagReference();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:4,代码来源:Scenario.cs

示例4: ScenarioCreaturePaletteBlock

 public ScenarioCreaturePaletteBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadTagReference();
     this.padding = binaryReader.ReadBytes(32);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:5,代码来源:Scenario.cs

示例5: ScenarioStructureBspSphericalHarmonicLightingBlock

 public ScenarioStructureBspSphericalHarmonicLightingBlock(BinaryReader binaryReader)
 {
     this.bSP = binaryReader.ReadTagReference();
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioSphericalHarmonicLightingPoint));
         this.lightingPoints = new ScenarioSphericalHarmonicLightingPoint[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.lightingPoints[i] = new ScenarioSphericalHarmonicLightingPoint(binaryReader);
             }
         }
     }
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:18,代码来源:Scenario.cs

示例6: ScenarioClusterDataBlock

 public ScenarioClusterDataBlock(BinaryReader binaryReader)
 {
     this.bSP = binaryReader.ReadTagReference();
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioClusterBackgroundSoundsBlock));
         this.backgroundSounds = new ScenarioClusterBackgroundSoundsBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.backgroundSounds[i] = new ScenarioClusterBackgroundSoundsBlock(binaryReader);
             }
         }
     }
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioClusterSoundEnvironmentsBlock));
         this.soundEnvironments = new ScenarioClusterSoundEnvironmentsBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.soundEnvironments[i] = new ScenarioClusterSoundEnvironmentsBlock(binaryReader);
             }
         }
     }
     this.bSPChecksum = binaryReader.ReadInt32();
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioClusterPointsBlock));
         this.clusterCentroids = new ScenarioClusterPointsBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.clusterCentroids[i] = new ScenarioClusterPointsBlock(binaryReader);
             }
         }
     }
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioClusterWeatherPropertiesBlock));
         this.weatherProperties = new ScenarioClusterWeatherPropertiesBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.weatherProperties[i] = new ScenarioClusterWeatherPropertiesBlock(binaryReader);
             }
         }
     }
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioClusterAtmosphericFogPropertiesBlock));
         this.atmosphericFogProperties = new ScenarioClusterAtmosphericFogPropertiesBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.atmosphericFogProperties[i] = new ScenarioClusterAtmosphericFogPropertiesBlock(binaryReader);
             }
         }
     }
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:75,代码来源:Scenario.cs

示例7: ScenarioPlanarFogPalette

 public ScenarioPlanarFogPalette(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadStringID();
     this.planarFog = binaryReader.ReadTagReference();
     this.padding = binaryReader.ReadBytes(2);
     this.padding0 = binaryReader.ReadBytes(2);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:7,代码来源:Scenario.cs

示例8: ScenarioDetailObjectCollectionPaletteBlock

 public ScenarioDetailObjectCollectionPaletteBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadTagReference();
     this.padding = binaryReader.ReadBytes(32);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:5,代码来源:Scenario.cs

示例9: StylePaletteBlock

 public StylePaletteBlock(BinaryReader binaryReader)
 {
     this.reference = binaryReader.ReadTagReference();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:4,代码来源:Scenario.cs

示例10: ScenarioStartingEquipmentBlock

 public ScenarioStartingEquipmentBlock(BinaryReader binaryReader)
 {
     this.flags = (Flags)binaryReader.ReadInt32();
     this.gameType1 = (GameType1)binaryReader.ReadInt16();
     this.gameType2 = (GameType2)binaryReader.ReadInt16();
     this.gameType3 = (GameType3)binaryReader.ReadInt16();
     this.gameType4 = (GameType4)binaryReader.ReadInt16();
     this.padding = binaryReader.ReadBytes(48);
     this.itemCollection1 = binaryReader.ReadTagReference();
     this.itemCollection2 = binaryReader.ReadTagReference();
     this.itemCollection3 = binaryReader.ReadTagReference();
     this.itemCollection4 = binaryReader.ReadTagReference();
     this.itemCollection5 = binaryReader.ReadTagReference();
     this.itemCollection6 = binaryReader.ReadTagReference();
     this.padding0 = binaryReader.ReadBytes(48);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:16,代码来源:Scenario.cs

示例11: ScenarioDecalPaletteBlock

 public ScenarioDecalPaletteBlock(BinaryReader binaryReader)
 {
     this.reference = binaryReader.ReadTagReference();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:4,代码来源:Scenario.cs

示例12: ScenarioNetgameEquipmentBlock

 public ScenarioNetgameEquipmentBlock(BinaryReader binaryReader)
 {
     this.flags = (Flags)binaryReader.ReadInt32();
     this.gameType1 = (GameType1)binaryReader.ReadInt16();
     this.gameType2 = (GameType2)binaryReader.ReadInt16();
     this.gameType3 = (GameType3)binaryReader.ReadInt16();
     this.gameType4 = (GameType4)binaryReader.ReadInt16();
     this.padding = binaryReader.ReadBytes(2);
     this.spawnTimeInSeconds0Default = binaryReader.ReadInt16();
     this.respawnOnEmptyTimeSeconds = binaryReader.ReadInt16();
     this.respawnTimerStarts = (RespawnTimerStarts)binaryReader.ReadInt16();
     this.classification = (Classification)binaryReader.ReadByte();
     this.padding0 = binaryReader.ReadBytes(3);
     this.padding1 = binaryReader.ReadBytes(40);
     this.position = binaryReader.ReadVector3();
     this.orientation = new ScenarioNetgameEquipmentOrientationStruct(binaryReader);
     this.itemVehicleCollection = binaryReader.ReadTagReference();
     this.padding2 = binaryReader.ReadBytes(48);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:19,代码来源:Scenario.cs

示例13: ScenarioProfilesBlock

 public ScenarioProfilesBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadString32();
     this.startingHealthDamage01 = binaryReader.ReadSingle();
     this.startingShieldDamage01 = binaryReader.ReadSingle();
     this.primaryWeapon = binaryReader.ReadTagReference();
     this.roundsLoaded = binaryReader.ReadInt16();
     this.roundsTotal = binaryReader.ReadInt16();
     this.secondaryWeapon = binaryReader.ReadTagReference();
     this.roundsLoaded0 = binaryReader.ReadInt16();
     this.roundsTotal0 = binaryReader.ReadInt16();
     this.startingFragmentationGrenadeCount = binaryReader.ReadByte();
     this.startingPlasmaGrenadeCount = binaryReader.ReadByte();
     this.startingUnknownGrenadeCount = binaryReader.ReadByte();
     this.startingUnknownGrenadeCount0 = binaryReader.ReadByte();
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:16,代码来源:Scenario.cs

示例14: Scenario

 public Scenario(BinaryReader binaryReader)
 {
     this.doNotUse = binaryReader.ReadTagReference();
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioSkyReferenceBlock));
         this.skies = new ScenarioSkyReferenceBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.skies[i] = new ScenarioSkyReferenceBlock(binaryReader);
             }
         }
     }
     this.type = (Type)binaryReader.ReadInt16();
     this.flags = (Flags)binaryReader.ReadInt16();
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioChildScenarioBlock));
         this.childScenarios = new ScenarioChildScenarioBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.childScenarios[i] = new ScenarioChildScenarioBlock(binaryReader);
             }
         }
     }
     this.localNorth = binaryReader.ReadSingle();
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(PredictedResourceBlock));
         this.predictedResources = new PredictedResourceBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.predictedResources[i] = new PredictedResourceBlock(binaryReader);
             }
         }
     }
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioFunctionBlock));
         this.functions = new ScenarioFunctionBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.functions[i] = new ScenarioFunctionBlock(binaryReader);
             }
         }
     }
     this.paddingeditorScenarioData = binaryReader.ReadBytes(8);
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(EditorCommentBlock));
         this.comments = new EditorCommentBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.comments[i] = new EditorCommentBlock(binaryReader);
             }
         }
     }
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(DontUseMeScenarioEnvironmentObjectBlock));
         this.dontUseMeScenarioEnvironmentObjectBlock = new DontUseMeScenarioEnvironmentObjectBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
                 binaryReader.BaseStream.Position = address + i * elementSize;
                 this.dontUseMeScenarioEnvironmentObjectBlock[i] = new DontUseMeScenarioEnvironmentObjectBlock(binaryReader);
             }
         }
     }
     {
         var count = binaryReader.ReadInt32();
         var address = binaryReader.ReadInt32();
         var elementSize = Marshal.SizeOf(typeof(ScenarioObjectNamesBlock));
         this.objectNames = new ScenarioObjectNamesBlock[count];
         using (binaryReader.BaseStream.Pin())
         {
             for (int i = 0; i < count; ++i)
             {
//.........这里部分代码省略.........
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:101,代码来源:Scenario.cs

示例15: StructureBspSoundEnvironmentPaletteBlock

 public StructureBspSoundEnvironmentPaletteBlock(BinaryReader binaryReader)
 {
     this.name = binaryReader.ReadString32();
     this.soundEnvironment = binaryReader.ReadTagReference();
     this.cutoffDistance = binaryReader.ReadSingle();
     this.interpolationSpeed1Sec = binaryReader.ReadSingle();
     this.padding = binaryReader.ReadBytes(24);
 }
开发者ID:jacksoncougar,项目名称:Moonfish-Editor,代码行数:8,代码来源:Scenario.cs


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