public override void Parse(GameBitBuffer buffer) { serQuests = new SerializeData(); serQuests.Parse(buffer); //still checking variablearrays this.ActQuestInfo = new List<ActQuestInfo>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _ActQuestInfo.Count; loop12++) { _ActQuestInfo[loop12] = new ActQuestInfo(); _ActQuestInfo[loop12].Parse(buffer); } WayPointInfo = new WaypointInfo[25]; for(int i = 0;i < _WayPointInfo.Length;i++) { _WayPointInfo[i] = new WaypointInfo(); _WayPointInfo[i].Parse(buffer); } ResolvedPortalDestination = new ResolvedPortalDestination(); ResolvedPortalDestination.Parse(buffer); ActStartLocOverrides = new ActStartLocOverride[6]; for(int i = 0;i < _ActStartLocOverrides.Length;i++) { _ActStartLocOverrides[i] = new ActStartLocOverride(); _ActStartLocOverrides[i].Parse(buffer); } }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 12; serQuests = new SerializeData(); serQuests.FileRead(stream, stream.Position); stream.Position = offset + 24; //still checking variablearrays ActQuestInfo = new List<ActQuestInfo>(); for(int i = 0; i < (int)(serQuests.Field1 / 4); i++) { stream.Position = serQuests.Field0 + 16 + (4*i) ; ActQuestInfo temp12_ActQuestInfo; temp12_ActQuestInfo = new ActQuestInfo(); temp12_ActQuestInfo.FileRead(stream, stream.Position); _ActQuestInfo.Add(temp12_ActQuestInfo); } stream.Position = offset + 32; WayPointInfo = new WaypointInfo[25]; for(int loop12=0; loop12 < 25; loop12++ ) { WaypointInfo temp12_WayPointInfo; temp12_WayPointInfo = new WaypointInfo(); temp12_WayPointInfo.FileRead(stream, stream.Position); _WayPointInfo[loop12] = temp12_WayPointInfo; } stream.Position = offset + 732; ResolvedPortalDestination = new ResolvedPortalDestination(); ResolvedPortalDestination.FileRead(stream, stream.Position); stream.Position = offset + 744; ActStartLocOverrides = new ActStartLocOverride[6]; for(int loop12=0; loop12 < 6; loop12++ ) { ActStartLocOverride temp12_ActStartLocOverrides; temp12_ActStartLocOverrides = new ActStartLocOverride(); temp12_ActStartLocOverrides.FileRead(stream, stream.Position); _ActStartLocOverrides[loop12] = temp12_ActStartLocOverrides; } }