EasyEcs
API reference

TableInfo

A table: the entities with one set of component columns (World.Describe).

public readonly struct TableInfo : IEquatable<TableInfo>

A table: the entities with one set of component columns (World.Describe).

Parameters

  • Columns: The component columns, in bit order (change-tick and Disabled columns not listed).
  • Entities: Living entities.
  • Rows: Rows in use: the entities and the holes a query in progress left (closed when it ends).
  • Capacity: Rows allocated.
  • Bytes: Memory of the rows allocated: columns, change ticks, presence bits and entity slots (not the objects managed components reference).

Constructors

TableInfo

public TableInfo(ColumnInfo[] Columns, int Entities, int Rows, int Capacity, long Bytes);

A table: the entities with one set of component columns (World.Describe).

Parameters

  • Columns: The component columns, in bit order (change-tick and Disabled columns not listed).
  • Entities: Living entities.
  • Rows: Rows in use: the entities and the holes a query in progress left (closed when it ends).
  • Capacity: Rows allocated.
  • Bytes: Memory of the rows allocated: columns, change ticks, presence bits and entity slots (not the objects managed components reference).

Properties

Bytes

public long Bytes { get; init; }

Memory of the rows allocated: columns, change ticks, presence bits and entity slots (not the objects managed components reference).

Capacity

public int Capacity { get; init; }

Rows allocated.

Columns

public ColumnInfo[] Columns { get; init; }

The component columns, in bit order (change-tick and Disabled columns not listed).

Entities

public int Entities { get; init; }

Living entities.

Rows

public int Rows { get; init; }

Rows in use: the entities and the holes a query in progress left (closed when it ends).

Methods

Deconstruct

public void Deconstruct(out ColumnInfo[] Columns, out int Entities, out int Rows, out int Capacity, out long Bytes);

Equals

public bool Equals(TableInfo other);
public override bool Equals(object obj);

GetHashCode

public override int GetHashCode();

ToString

public override string ToString();

Operators

operator !=

public static bool operator !=(TableInfo left, TableInfo right);

operator ==

public static bool operator ==(TableInfo left, TableInfo right);
Edit on GitHub

Last updated on

How is this guide?

On this page