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:
- Lookup: Finds the record matching the specified unique integer ID.
- 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.