public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; ResolvedPortalDestination = new ResolvedPortalDestination(); ResolvedPortalDestination.FileRead(stream, stream.Position); stream.Position = offset + 12; SNOQuestRange = stream.ReadValueS32(); }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; Field0 = new RequiredMessageHeader(); Field0.FileRead(stream, stream.Position); stream.Position = offset + 8; ActorID = stream.ReadValueS32(); stream.Position = offset + 12; Destination = new ResolvedPortalDestination(); Destination.FileRead(stream, stream.Position); }
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; } }