Detailed Property Reference

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

Definition

public CSVIdType idType { get; set; }
  • Description: Determines how unique identifiers are generated when new records are created dynamically at runtime.

  • Workflow:

    1. Configuration: Evaluated when calling record creation methods within the table.
    2. Generation: Applies either a deterministic integer hash based on the record label or a randomized UUID hash depending on the active enum selection.
  • Returns: CSVIdType - The identifier generation strategy enum (Integer or UUID).

  • Example:

public void ConfigureIdentifierStrategy(CSVTable<SaveDataRecord> saveTable)
{
    saveTable.idType = CSVIdType.UUID;
    Debug.Log(message: $"ID generation strategy updated to: {saveTable.idType}");
}

TIP

Use Integer (deterministic hash) for static master data tables so record IDs remain consistent across reloads, and UUID for player-generated save files where uniqueness is paramount.