本文整理汇总了C#中CrystalMpq.MpqFileStream.ReadSerializedData方法的典型用法代码示例。如果您正苦于以下问题:C# MpqFileStream.ReadSerializedData方法的具体用法?C# MpqFileStream.ReadSerializedData怎么用?C# MpqFileStream.ReadSerializedData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CrystalMpq.MpqFileStream
的用法示例。
在下文中一共展示了MpqFileStream.ReadSerializedData方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: 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>();
}
示例3: Read
public void Read(MpqFileStream stream)
{
this.F0 = new Float3(stream);
this.F1 = new Float3(stream);
this.F2 = new Float3(stream);
stream.Position += 36;
this.DominoNodeCount = stream.ReadValueS32();
this.VerticeCount = stream.ReadValueS32();
this.DominoTriangleCount = stream.ReadValueS32();
this.DominoEdgeCount = stream.ReadValueS32();
this.I4 = stream.ReadValueS32();
this.I5 = stream.ReadValueS32();
this.Vertices = stream.ReadSerializedData<Float3>();
this.DominoTriangles = stream.ReadSerializedData<MeshTriangle>();
this.DominoNodes = stream.ReadSerializedData<MeshNode>();
this.DominoEdges = stream.ReadSerializedData<MeshEdge>();
this.I6 = stream.ReadValueS32();
this.I7 = stream.ReadValueS32();
}
示例4: 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);
}
示例5: 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>();
if (SquaresCountX < 64 && SquaresCountY < 64)
{
WalkGrid = new byte[64, 64];
}
else if (SquaresCountX < 128 && SquaresCountY < 128)
{
WalkGrid = new byte[128, 128]; //96*96
}
else if (SquaresCountX > 128 || SquaresCountY > 128)
{
WalkGrid = new byte[256, 256];
}
// Loop thru each NavmeshSquare in the array, and fills the grid
for (int i = 0; i < NavMeshSquareCount; i++)
{
WalkGrid[i % SquaresCountX, i / SquaresCountY] = (byte)(Squares[i].Flags & Scene.NavCellFlags.AllowWalk);
// Set the grid to 0x1 if its walkable, left as 0 if not. - DarkLotus
}
stream.Position += (3 * 4);
this.Filename = stream.ReadString(256, true);
}
示例6: NavZoneDef
public NavZoneDef(MpqFileStream stream)
{
this.NavCellCount = stream.ReadValueS32();
stream.Position += (3 * 4);
this.NavCells = stream.ReadSerializedData<NavCell>();
this.NeighbourCount = stream.ReadValueS32();
stream.Position += (3 * 4);
this.NavCellNeighbours = stream.ReadSerializedData<NavCellLookup>();
this.Float0 = stream.ReadValueF32();
this.Float1 = stream.ReadValueF32();
this.Int2 = stream.ReadValueS32();
this.V0 = new Vector2D(stream);
stream.Position += (3 * 4);
this.GridSquares = stream.ReadSerializedData<NavGridSquare>();
this.Int3 = stream.ReadValueS32();
stream.Position += (3 * 4);
this.CellLookups = stream.ReadSerializedData<NavCellLookup>();
this.BorderDataCount = stream.ReadValueS32();
stream.Position += (3 * 4);
this.BorderData = stream.ReadSerializedData<NavCellBorderData>();
}
示例7: Read
public void Read(MpqFileStream stream)
{
this.Name = stream.ReadString(128, true);
LabelCondition = new LabelCondition(stream);
Int0 = stream.ReadValueS32();
LabelCount = stream.ReadValueS32();
stream.Position += (2 * 4);
this.Entries = stream.ReadSerializedData<LabelEntry>();
}
示例8: Read
public void Read(MpqFileStream stream)
{
var pointer = stream.GetSerializedDataPointer();
this.DRLGTiles = stream.ReadSerializedData<TileInfo>(pointer, pointer.Size / 72);
stream.Position += (14 * 4);
this.CommandCount = stream.ReadValueS32();
this.DRLGCommands = stream.ReadSerializedData<DRLGCommand>(this.CommandCount);
stream.Position += (3 * 4);
this.ParentIndices = stream.ReadSerializedInts();
stream.Position += (2 * 4);
this.DRLGTagMap = stream.ReadSerializedItem<TagMap>();
}
示例9: CustomTileInfo
public CustomTileInfo(MpqFileStream stream)
{
Int0 = stream.ReadValueS32();
Int1 = stream.ReadValueS32();
Int2 = stream.ReadValueS32();
V0 = new Vector2D(stream);
CustomTileCells = stream.ReadSerializedData<CustomTileCell>();
stream.Position += (3 * 4);
}
示例10: Read
public void Read(MpqFileStream stream)
{
this.S0 = stream.ReadString(64, true);
this.I0 = stream.ReadValueS32();
this.I1 = new int[4];
for (int i = 0; i < 4; i++)
this.I1[i] = stream.ReadValueS32();
this.I2 = stream.ReadValueS32();
stream.Position += 8;
this.SpawnGroup = stream.ReadSerializedData<LevelAreaSpawnGroup>();
}
示例11: Read
public void Read(MpqFileStream stream)
{
for (int i = 0; i < I0.Length; i++)
I0[i] = stream.ReadValueS32();
I1 = stream.ReadValueS32();
I2 = stream.ReadValueS32();
I3 = stream.ReadValueS32();
I4 = stream.ReadValueS32();
I5 = stream.ReadValueS32();
stream.Position += 12;
StepBonusObjectives = stream.ReadSerializedData<QuestStepObjective>();
}
示例12: Read
public void Read(MpqFileStream stream)
{
I0 = stream.ReadValueS32();
I1 = stream.ReadValueS32();
LineID = stream.ReadValueS32();
Speaker1 = (Speaker)stream.ReadValueS32();
Speaker2 = (Speaker)stream.ReadValueS32();
AnimationTag = stream.ReadValueS32();
I4 = stream.ReadValueS32();
ClassFilter = stream.ReadValueS32();
for (int i = 0; i < ConvLocalDisplayTimes.Length; i++)
ConvLocalDisplayTimes[i] = new ConvLocalDisplayTimes(stream);
stream.Position += (2 * 4);
Comment = stream.ReadSerializedString();
this.I6 = stream.ReadValueS32();
stream.Position += 4; // these are unaccounted for...xml offsets just skips ahead
stream.Position += (2 * 4);
TrueNodes = stream.ReadSerializedData<ConversationTreeNode>();
stream.Position += (2 * 4);
FalseNodes = stream.ReadSerializedData<ConversationTreeNode>();
stream.Position += (2 * 4);
ChildNodes = stream.ReadSerializedData<ConversationTreeNode>();
}
示例13: NavZoneDef
public NavZoneDef(MpqFileStream stream)
{
this.NavCellCount = stream.ReadValueS32();
stream.Position += (3 * 4);
this.NavCells = stream.ReadSerializedData<NavCell>(this.NavCellCount);
this.NeightbourCount = stream.ReadValueS32();
stream.Position += (3 * 4);
this.NavCellNeighbours = stream.ReadSerializedData<NavCellLookup>(this.NeightbourCount);
this.Float0 = stream.ReadValueF32();
this.Float1 = stream.ReadValueF32();
this.Int2 = stream.ReadValueS32();
this.V0 = new Vector2D(stream);
stream.Position += (3 * 4);
var pointerGridSquares = stream.GetSerializedDataPointer();
this.GridSquares = stream.ReadSerializedData<NavGridSquare>(pointerGridSquares, pointerGridSquares.Size / 6);
this.Int3 = stream.ReadValueS32();
stream.Position += (3 * 4);
var pointerCellLookups = stream.GetSerializedDataPointer();
this.CellLookups = stream.ReadSerializedData<NavCellLookup>(pointerCellLookups, pointerCellLookups.Size / 4);
this.Int4 = stream.ReadValueS32();
stream.Position += (3 * 4);
var pointerBorderData = stream.GetSerializedDataPointer();
this.BorderData = stream.ReadSerializedData<NavCellBorderData>(pointerBorderData, pointerBorderData.Size / 4);
}
示例14: 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);
}
示例15: SceneClusterSet
public SceneClusterSet(MpqFileStream stream)
{
this.ClusterCount = stream.ReadValueS32();
stream.Position += (4 * 3);
this.SceneClusters = stream.ReadSerializedData<SceneCluster>();
}