本文整理汇总了C#中CrystalMpq.MpqFileStream类的典型用法代码示例。如果您正苦于以下问题:C# MpqFileStream类的具体用法?C# MpqFileStream怎么用?C# MpqFileStream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MpqFileStream类属于CrystalMpq命名空间,在下文中一共展示了MpqFileStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
public void Read(MpqFileStream stream)
{
this.SNOSpawn = stream.ReadValueS32();
this.Probability = stream.ReadValueS32();
this.I1 = stream.ReadValueS32();
this.I2 = stream.ReadValueS32();
}
示例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);
}
示例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);
}
示例4: Header
public Header(MpqFileStream stream)
{
DeadBeef = stream.ReadInt32();
SnoType = stream.ReadInt32();
unknown1 = stream.ReadInt32();
unknown2 = stream.ReadInt32();
}
示例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);
}
示例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);
}
}
示例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: Read
public void Read(MpqFileStream stream)
{
this.SNOPower = stream.ReadValueS32();
this.Category = (ActiveSkillCategory)stream.ReadValueS32();
this.ReqLevel = stream.ReadValueS32();
this.I2 = stream.ReadValueS32();
}
示例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];
}
示例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);
}
}
示例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);
}
示例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();
}
示例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>();
}
示例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);
}
}
示例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();
}