public void LoadTargetsFromFile(string filename) { var fileHelpers = new DelimitedFileEngine <DwellableFileEntry>(); var fileCollection = fileHelpers.ReadFile(filename); foreach (var entry in fileCollection) { var target = new DwellableTarget(new Point(entry.x, entry.y), entry.label, entry.type, entry.page); AddTarget(target); } }
public void AddTarget(DwellableTarget target) { dwellableTargets.Add(target); }