Log Misc
Functions
logArray
▸ logArray<T>(this, array, name?): void
Helper function to log all of the values in an array.
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
this | void | - |
array | readonly T[] | The array to log. |
name? | string | Optional. The name of the array, which will be logged before the elements. |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:54
logCollectibleTypes
▸ logCollectibleTypes(this, collectibleTypes, name?): void
Helper function to log the names of a collectible type array.
Parameters
| Name | Type | Description |
|---|---|---|
this | void | - |
collectibleTypes | readonly CollectibleType[] | The collectible types to log. |
name? | string | Optional. The name of the array, which will be logged before the elements. |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:79
logColor
▸ logColor(this, color, name?): void
Helper function to log a Color object.
Parameters
| Name | Type | Description |
|---|---|---|
this | void | - |
color | Color | The Color object to log. |
name? | string | Optional. The name of the object, which will be logged before the properties. |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:104
logDamageFlags
▸ logDamageFlags(this, damageFlags): void
Helper function to log every damage flag that is turned on. Useful when debugging.
Parameters
| Name | Type |
|---|---|
this | void |
damageFlags | DamageFlagValue | BitFlags<DamageFlagValue> |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:115
logDisplayFlags
▸ logDisplayFlags(this, displayFlags): void
Helper function to log every display flag that is turned on. Useful when debugging.
Parameters
| Name | Type |
|---|---|
this | void |
displayFlags | DisplayFlagValue | BitFlags<DisplayFlagValue> |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:123
logEntityFlags
▸ logEntityFlags(this, entityFlags): void
Helper function to log every entity flag that is turned on. Useful when debugging.
Parameters
| Name | Type |
|---|---|
this | void |
entityFlags | EntityFlagValue | BitFlags<EntityFlagValue> |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:131
logEntityID
▸ logEntityID(this, entity): void
Parameters
| Name | Type |
|---|---|
this | void |
entity | Entity |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:138
logFlags
▸ logFlags<T>(this, flags, flagEnum, description?): void
Helper function for logging every flag that is turned on. Useful when debugging.
Type parameters
| Name | Type |
|---|---|
T | extends BitFlag | BitFlag128 |
Parameters
| Name | Type | Default value |
|---|---|---|
this | void | undefined |
flags | T | BitFlags<T> | undefined |
flagEnum | Readonly<Record<string, T>> | undefined |
description | string | "" |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:144
logGameStateFlags
▸ logGameStateFlags(this): void
Helper function for logging every game state flag that is turned on. Useful when debugging.
Parameters
| Name | Type |
|---|---|
this | void |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:172
logItemPoolTypes
▸ logItemPoolTypes(this, itemPoolTypes, name?): void
Helper function to log the names of a item pool type array.
Parameters
| Name | Type | Description |
|---|---|---|
this | void | - |
itemPoolTypes | readonly ItemPoolType[] | The item pool types to log. |
name? | string | Optional. The name of the array, which will be logged before the elements. |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:197
logKColor
▸ logKColor(this, kColor, name?): void
Helper function to log a KColor object.
Parameters
| Name | Type | Description |
|---|---|---|
this | void | - |
kColor | KColor | The KColor object to log. |
name? | string | Optional. The name of the object, which will be logged before the properties. |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:222
logLevelStateFlags
▸ logLevelStateFlags(this): void
Helper function for logging every level state flag that is turned on. Useful when debugging.
Parameters
| Name | Type |
|---|---|
this | void |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:233
logMap
▸ logMap(this, map, name?): void
Helper function to log a TSTL Map.
Parameters
| Name | Type | Description |
|---|---|---|
this | void | - |
map | ReadonlyMap<string | number, unknown> | The TSTL Map to log. |
name? | string | Optional. The name of the map, which will be logged before the elements. |
Returns
void
Defined in
packages/isaacscript-common/src/functions/logMisc.ts:259