/// <summary>Forcefully inserts skip location into location list after current location.</summary> /// <param name="skipIndex">Index in the location list we will add the new one.</param> /// <param name="skipLocation">Location that the trail module will point to after current location.</param> public void InsertLocation(int skipIndex, Location skipLocation) { _locations.Insert(skipIndex, skipLocation); // Marks the last location in the trail, if another location is inserted this will be re-calculated. FlagLastLocation(); }
/// <summary>Forcefully inserts skip location into location list after current location.</summary> /// <param name="skipChoice">Location that the trail module will point to after current location.</param> public void InsertLocation(Location skipChoice) { Trail.InsertLocation(LocationIndex + 1, skipChoice); }