ULongEntityClass

constructor(table: IdTable<ULong>, entityType: Class<E>? = null, entityCtor: (EntityID<ULong>) -> E? = null)

Parameters

table

The IdTable object that stores rows mapped to entities of this class.

entityType

The expected ULongEntity type. This can be left null if it is the class of type argument E provided to this ULongEntityClass instance. If this ULongEntityClass is defined as a companion object of a custom ULongEntity class, the parameter will be set to this immediately enclosing class by default.

entityCtor

The function invoked to instantiate a ULongEntity using a provided EntityID value. If a reference to a specific constructor or a custom function is not passed as an argument, reflection will be used to determine the primary constructor of the associated entity class on first access. If this ULongEntityClass is defined as a companion object of a custom ULongEntity class, the constructor will be set to that of the immediately enclosing class by default.