Detailed Method Reference

Namespace: Canley.Utility.CSV.Standard
Class: CSVTable<T>

Definition

public void RemoveRecordById(int id)
  • Description: A convenience method that locates and deletes a record from the table’s memory collection using its unique integer ID.

  • Workflow:

    1. Lookup: Finds the record matching the specified unique integer ID.
    2. Removal: Strips the matched record instance from the active records list.
  • Parameters:

    • id: The unique integer identifier of the record to delete.
  • Returns: void

  • Example:

public void DeleteQuestById(CSVTable<QuestRecord> questTable, int questId)
{
    questTable.RemoveRecordById(questId);
    Debug.Log(message: $"Attempted removal of record with ID: {questId}");
}

TIP

This method is particularly useful for networked games or save-file cleanup routines where you only possess the technical identifier rather than a direct object reference.