Scripting API

Scripting API

ListType<T>

Struct in Abyss.Core, from Abyss.Core.

A list component registered with a World: each entity carrying it holds a list of T, as many as it needs. See AbyssListAttribute.

public readonly struct ListType<T> where T : unmanaged

Type parameters

  • T: The plain-data struct one item is.

Properties

Id

public ComponentId Id { get; }

The native component id.

Methods

Read

public QueryTerm Read()

A query term that reads each entity's list.

Write

public QueryTerm Write()

A query term that reads and writes each entity's list: its items, and how many.

With

public QueryFilter With()

A filter requiring entities to carry the list, without selecting it.

Without

public QueryFilter Without()

A filter requiring entities not to carry the list.

Operators

implicit operator ComponentId

public static implicit operator ComponentId(ListType<T> type)

Allows a list to be used wherever an untyped id is expected.

Parameters

  • type