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); } }
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); }
public void Read(MpqFileStream stream) { this.Name = stream.ReadString(128, true); this.Int0 = stream.ReadValueS32(); this.PRTransform = new PRTransform(stream); this.SNOName = new SNOName(stream); this.TagMap = stream.ReadSerializedItem<TagMap>(); // Un sure about these 3 ints, 010template isnt the same as snodata.xml - DarkLotus this.IntTagMap = stream.ReadValueS32(); Int1 = stream.ReadValueS32(); Int2 = stream.ReadValueS32(); var pointerMarkerLinks = stream.GetSerializedDataPointer(); stream.Position += (3 * 4); }
public void Read(MpqFileStream stream) { this.DRLGParams = stream.ReadSerializedData<DRLGParams>(); stream.Position += 8; this.SceneParams = stream.ReadSerializedItem<SceneParams>(); stream.Position += 8; LabelRuleSet = new LabelRuleSet(stream); this.Int1 = stream.ReadValueS32(); this.SceneClusterSet = new SceneClusterSet(stream); for (int i = 0; i < SNONavMeshFunctions.Length; i++) { SNONavMeshFunctions[i] = stream.ReadValueS32(); } SNOScript = stream.ReadValueS32(); Int2 = stream.ReadValueS32(); }
public void Read(MpqFileStream stream) { this.Name = stream.ReadString(128, true); CommandType = stream.ReadValueS32(); this.TagMap = stream.ReadSerializedItem<TagMap>(); stream.Position += (3 * 4); }
public void Read(MpqFileStream stream) { ExitDirectionBits = stream.ReadValueS32(); TileType = stream.ReadValueS32(); SNOScene = stream.ReadValueS32(); Probability = stream.ReadValueS32(); this.TagMap = stream.ReadSerializedItem<TagMap>(); stream.Position += (2 * 4); CustomTileInfo = new CustomTileInfo(stream); }
public void Read(MpqFileStream stream) { Tiles = stream.ReadSerializedData<TileInfo>(); stream.Position += (14 * 4); this.CommandCount = stream.ReadValueS32(); this.Commands = stream.ReadSerializedData<DRLGCommand>(); stream.Position += (3 * 4); this.ParentIndices = stream.ReadSerializedInts(); stream.Position += (2 * 4); this.TagMap = stream.ReadSerializedItem<TagMap>(); stream.Position += (2 * 4); }
public void Read(MpqFileStream stream) { Int0 = stream.ReadValueS32(); Int1 = stream.ReadValueS32(); SNOScene = stream.ReadValueS32(); Int2 = stream.ReadValueS32(); this.TileTagMap = stream.ReadSerializedItem<TagMap>(); stream.Position += (2 * 4); CustomTileInfo = new CustomTileInfo(stream); }
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>(); }
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>(); // Un sure about these 3 ints, 010template isnt the same as snodata.xml - DarkLotus // IntTagMap && Int2 are always 0 for beta. leave it here only because xml does not match either -farmy this.IntTagMap = stream.ReadValueS32(); Int1 = stream.ReadValueS32(); Int2 = stream.ReadValueS32(); var pointerMarkerLinks = stream.GetSerializedDataPointer(); stream.Position += (3 * 4); }