tormenta20 - v0.0.0
    Preparing search index...

    Class Tabela

    A Tabela (reference table) in Tormenta20.

    Tables store structured tabular data from T20 sourcebooks (e.g. random loot tables, encounter tables, etc.).

    Tabela.all()
    Tabela.find("tesouros_por_nd")

    const t = Tabela.find("tesouros_por_nd")!
    t.headers // ["ND", "Tibares", "Itens"]
    t.rows // [["1", "50", "—"], ...]

    Hierarchy

    • BaseModel
      • Tabela
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Tabela

    Accessors

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get id(): string

      Unique string identifier (e.g. "espada_longa", "guerreiro").

      Returns string

    • get name(): string

      Display name.

      Returns string

    • get rows(): unknown[][]

      Array of row arrays, each containing string values in header order.

      Returns unknown[][]

    • get updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          description: string | null;
          headers: string[];
          id: string;
          name: string;
          rows: unknown[][];
      }