xecs.PyField#

class xecs.PyField[source]#

Bases: Generic[T]

An array of Python component values.

Methods

fill

Set the values of the array.

get

Get the value at a specific index.

fill(value)[source]#

Set the values of the array.

Parameters:

value (T) – The value to use.

Return type:

None

get(index)[source]#

Get the value at a specific index.

Parameters:

index (int) – The index where the value is located.

Returns:

The value at index.

Return type:

T