本文整理汇总了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);
}
示例2: Read
public void Read(MpqFileStream stream)
{
this.SNOSpawn = stream.ReadValueS32();
this.Probability = stream.ReadValueS32();
this.I1 = stream.ReadValueS32();
this.I2 = stream.ReadValueS32();
}
示例3: Read
public void Read(MpqFileStream stream)
{
this.SNOPower = stream.ReadValueS32();
this.Category = (ActiveSkillCategory)stream.ReadValueS32();
this.ReqLevel = stream.ReadValueS32();
this.I2 = stream.ReadValueS32();
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
示例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();
}
示例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>();
}
示例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);
}
}
示例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();
}
示例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();
}
示例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);
}