TR2-Rando icon indicating copy to clipboard operation
TR2-Rando copied to clipboard

Refactor level collections

Open lahm86 opened this issue 2 years ago • 0 comments

Refactor each of the TRLevelReader.Model classes to use lists for the various collections instead of arrays. ~~Retain the related NumXYZ properties, but remove the setters.~~

e.g.

public ushort NumRooms { get; set; }
public TRRoom[] Rooms { get; set; }

will become

public List<TRRoom> Rooms { get; set; }

and callers can just use the built-in count to get the relevant numbers.

lahm86 avatar May 15 '23 18:05 lahm86