當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。