|
Binding of Isaac - Afterbirth+ Lua Reference/Guide
|
Functions | |
| DebugString (string str) | |
| EntityPlayer & | GetPlayer (integer playerId) |
| int | GetFrameCount () |
| Entity & | Spawn (int entityType, int entityVariant, int entitySubtype, Vector position, Vector velocity, Entity Spawner) |
| , const Vector& velocity = Vector::Zero); More... | |
| GridEntity & | GridSpawn (int gridEntityType, int Variant, Vector position, boolean forced) |
| RenderText (string str, float X, float Y, float R, float G, float B, float A) | |
| RenderScaledText (string str, float X, float Y, float ScaleX, float ScaleY, float R, float G, float B, float A) | |
| integer | GetTextWidth (string str) |
| Vector | GetRandomPosition () |
| Vector | GetFreeNearPosition (Vector pos, float step) |
| Explode (Vector pos, Entity source, float damage) | |
| integer | AddPillEffectToPool (integer pillEffect) |
| returns pill color More... | |
| table | GetRoomEntities () |
| returns all entities in the room More... | |
| integer | GetChallenge () |
| integer | GetEntityTypeByName (string entityName) |
| integer | GetEntityVariantByName (string entityName) |
| integer | GetItemIdByName (string itemName) |
| integer | GetPlayerTypeByName (string playerName) |
| integer | GetCardIdByName (string cardName) |
| integer | GetPillEffectByName (string pillEffect) |
| integer | GetTrinketIdByName (string trinketName) |
| integer | GetChallengeIdByName (string challengeName) |
| integer | GetCostumeIdByPath (string path) |
| integer | GetCurseIdByName (string curseName) |
| integer | GetSoundIdByName (string soundName) |
| integer | GetMusicIdByName (string musicName) |
| integer | GetTime () |
| string | ExecuteCommand (string command) |
| ConsoleOutput (string text) | |
| Config & | GetItemConfig () |
| table | FindInRadius (Vector Position, float Radius, integer Partitions) |
| Returns entities in range of Radius from Position filtered by Partitions mask (see EntityPartition enum) (include all = 0xffffffff) More... | |
| table | FindByType (integer Type, integer Variant, integer Subtype, boolean Cache, boolean IgnoreFriendly) |
| integer | CountEntities (Entity Spawner, integer Type, integer Variant, integer Subtype) |
| Counts entities from SpawnerEntity (can be NULL) and/or Type (can be ENTITY_NULL), and/or Variant/Subtype (can be -1) More... | |
| integer | CountBosses () |
| integer | CountEnemies () |
| RegisterMod (table ref, string modName, integer apiVersion) | |
| Exposed methods. More... | |
| AddCallback (table ref, integer callbackId, table callbackFn, integer entityId) | |
| RemoveCallback (table ref, integer callbackId, table callbackFn) | |
| SaveModData (table ref, string data) | |
| string | LoadModData (table ref) |
| boolean | HasModData (table ref) |
| RemoveModData (table ref) | |
| Vector | ScreenToWorld (Vector pos) |
| Vector | WorldToScreen (Vector pos) |
| Vector | WorldToScreenDistance (Vector pos) |
| Vector | WorldToRenderPosition (Vector pos) |
| Vector | ScreenToWorldDistance (Vector pos) |
| Isaac::AddCallback | ( | table | ref, |
| integer | callbackId, | ||
| table | callbackFn, | ||
| integer | entityId | ||
| ) |
| integer Isaac::AddPillEffectToPool | ( | integer | pillEffect | ) |
returns pill color
| Isaac::ConsoleOutput | ( | string | text | ) |
| integer Isaac::CountBosses | ( | ) |
| integer Isaac::CountEnemies | ( | ) |
| integer Isaac::CountEntities | ( | Entity | Spawner, |
| integer | Type, | ||
| integer | Variant, | ||
| integer | Subtype | ||
| ) |
Counts entities from SpawnerEntity (can be NULL) and/or Type (can be ENTITY_NULL), and/or Variant/Subtype (can be -1)
| Isaac::DebugString | ( | string | str | ) |
| string Isaac::ExecuteCommand | ( | string | command | ) |
| table Isaac::FindByType | ( | integer | Type, |
| integer | Variant, | ||
| integer | Subtype, | ||
| boolean | Cache, | ||
| boolean | IgnoreFriendly | ||
| ) |
Returns entities based on Type, Variant, Subtype. If Variant and/or Subtype is -1 then everything is included in that Variant/Subtype, Use Cache flag for multiple calls per frame.
| table Isaac::FindInRadius | ( | Vector | Position, |
| float | Radius, | ||
| integer | Partitions | ||
| ) |
Returns entities in range of Radius from Position filtered by Partitions mask (see EntityPartition enum) (include all = 0xffffffff)
| integer Isaac::GetCardIdByName | ( | string | cardName | ) |
| integer Isaac::GetChallenge | ( | ) |
| integer Isaac::GetChallengeIdByName | ( | string | challengeName | ) |
| integer Isaac::GetCostumeIdByPath | ( | string | path | ) |
| integer Isaac::GetCurseIdByName | ( | string | curseName | ) |
| integer Isaac::GetEntityTypeByName | ( | string | entityName | ) |
| integer Isaac::GetEntityVariantByName | ( | string | entityName | ) |
| int Isaac::GetFrameCount | ( | ) |
| Config& Isaac::GetItemConfig | ( | ) |
| integer Isaac::GetItemIdByName | ( | string | itemName | ) |
| integer Isaac::GetMusicIdByName | ( | string | musicName | ) |
| integer Isaac::GetPillEffectByName | ( | string | pillEffect | ) |
| EntityPlayer& Isaac::GetPlayer | ( | integer | playerId | ) |
| integer Isaac::GetPlayerTypeByName | ( | string | playerName | ) |
| Vector Isaac::GetRandomPosition | ( | ) |
| table Isaac::GetRoomEntities | ( | ) |
returns all entities in the room
| integer Isaac::GetSoundIdByName | ( | string | soundName | ) |
| integer Isaac::GetTextWidth | ( | string | str | ) |
| integer Isaac::GetTime | ( | ) |
| integer Isaac::GetTrinketIdByName | ( | string | trinketName | ) |
| GridEntity& Isaac::GridSpawn | ( | int | gridEntityType, |
| int | Variant, | ||
| Vector | position, | ||
| boolean | forced | ||
| ) |
| boolean Isaac::HasModData | ( | table | ref | ) |
| string Isaac::LoadModData | ( | table | ref | ) |
| Isaac::RegisterMod | ( | table | ref, |
| string | modName, | ||
| integer | apiVersion | ||
| ) |
Exposed methods.
| Isaac::RemoveCallback | ( | table | ref, |
| integer | callbackId, | ||
| table | callbackFn | ||
| ) |
| Isaac::RemoveModData | ( | table | ref | ) |
| Isaac::RenderScaledText | ( | string | str, |
| float | X, | ||
| float | Y, | ||
| float | ScaleX, | ||
| float | ScaleY, | ||
| float | R, | ||
| float | G, | ||
| float | B, | ||
| float | A | ||
| ) |
| Isaac::RenderText | ( | string | str, |
| float | X, | ||
| float | Y, | ||
| float | R, | ||
| float | G, | ||
| float | B, | ||
| float | A | ||
| ) |
| Isaac::SaveModData | ( | table | ref, |
| string | data | ||
| ) |
| Entity& Isaac::Spawn | ( | int | entityType, |
| int | entityVariant, | ||
| int | entitySubtype, | ||
| Vector | position, | ||
| Vector | velocity, | ||
| Entity | Spawner | ||
| ) |
, const Vector& velocity = Vector::Zero);