xecs.Struct#

class xecs.Struct[source]#

Bases: object

A base class for reusable data structures held by components.

Methods

to_str

Return a string representation.

to_str(nesting)[source]#

Return a string representation.

Parameters:

nesting (int) – How deeply nested the struct is in the component.

Returns:

The string representation.

Return type:

str