Skip to main content

Log Entities

Functions

logAllEntities

logAllEntities(this, includeBackgroundEffects, entityTypeFilter?): void

Helper function for printing out every entity (or filtered entity) in the current room.

Parameters

NameType
thisvoid
includeBackgroundEffectsboolean
entityTypeFilter?EntityType

Returns

void

Defined in

packages/isaacscript-common/src/functions/logEntities.ts:35


logAllGridEntities

logAllGridEntities(this, includeWalls?, gridEntityTypeFilter?): void

Helper function for printing out every grid entity (or filtered grid entity) in the current room.

Parameters

NameTypeDefault valueDescription
thisvoidundefined-
includeWallsbooleanfalseOptional. Whether oto log the walls. Default is false.
gridEntityTypeFilter?GridEntityTypeundefinedOptional. If specified, will only log the given GridEntityType. Default is undefined.

Returns

void

Defined in

packages/isaacscript-common/src/functions/logEntities.ts:91


logEntities

logEntities(this, entities): void

Helper function for logging an array of specific entities.

Parameters

NameType
thisvoid
entitiesreadonly Entity[]

Returns

void

Defined in

packages/isaacscript-common/src/functions/logEntities.ts:145


logEntity

logEntity(this, entity): void

Helper function to log information about a specific entity.

Parameters

NameType
thisvoid
entityEntity

Returns

void

Defined in

packages/isaacscript-common/src/functions/logEntities.ts:152


logGridEntities

logGridEntities(this, gridEntities): void

Helper function for logging an array of specific grid entities.

Parameters

NameType
thisvoid
gridEntitiesreadonly GridEntity[]

Returns

void

Defined in

packages/isaacscript-common/src/functions/logEntities.ts:298


logGridEntity

logGridEntity(this, gridEntity): void

Helper function for log information about a specific grid entity.

Parameters

NameType
thisvoid
gridEntityGridEntity

Returns

void

Defined in

packages/isaacscript-common/src/functions/logEntities.ts:308


logPtrHash

logPtrHash(this, ptrHash): void

Helper function to log information about the entity that corresponding to a pointer hash. (Only use this when debugging, since retrieving the corresponding entity is expensive.)

Parameters

NameType
thisvoid
ptrHashPtrHash

Returns

void

Defined in

packages/isaacscript-common/src/functions/logEntities.ts:378


logPtrHashes

logPtrHashes(this, ptrHashes): void

Helper function to log information about the entity that corresponding to one or more pointer hashes. (Only use this when debugging, since retrieving the corresponding entity is expensive.)

Parameters

NameType
thisvoid
ptrHashesreadonly PtrHash[]

Returns

void

Defined in

packages/isaacscript-common/src/functions/logEntities.ts:392