public void ReadHealthSegments(BinaryReader reader) { for (int i = 0; i < HealthSegments.Length; i++) { HealthSegment SegmentItem = new HealthSegment(); SegmentItem.ReadFromFile(reader); HealthSegments[i] = SegmentItem; } for (int i = 0; i < HealthSegments.Length; i++) { HealthSegment SegmentItem = HealthSegments[i]; SegmentItem.ReadArrayData(reader); } for (int i = 0; i < DamageLimiterGraph.Length; i++) { XBinVector2 NewVector = new XBinVector2(); NewVector.ReadFromFile(reader); DamageLimiterGraph[i] = NewVector; } for (int i = 0; i < DangerBarDistanceMults.Length; i++) { XBinVector2 NewVector = new XBinVector2(); NewVector.ReadFromFile(reader); DangerBarDistanceMults[i] = NewVector; } }