|
Project Zomboid Lua Docs 29123
Unofficial documentation for Project Zomboid's Lua
|
Public Member Functions | |
| boolean | walkTo (number x, number y, number z) |
| void | removeFromGround (IsoGridSquare square) |
| number | getHealth () |
| void | render (number x, number y, number z, IsoGridSquare square) |
| boolean | isObjectSpriteBlockingWallPlacement (string _sprite, boolean _north) |
| boolean | isValidPerSquare (IsoGridSquare square, SpriteConfigManager::TileInfo tileInfo, boolean _requiresFloor, boolean _extendsN, boolean _extendsW) |
| boolean | isValid (IsoGridSquare square) |
| IsoGridSquare[] | getOccupiedTiles (IsoGridSquare square) |
| boolean | create (number x, number y, number z, boolean north, string sprite) |
| void | setInfo (IsoGridSquare square, boolean north, string sprite, string openSprite) |
| void | rotateKey (integer key) |
| SpriteConfigManager::FaceInfo | getFace () |
| SpriteConfigManager::FaceInfo | getOpenFace (boolean _north) |
| void | cacheSprites (SpriteConfigManager::FaceInfo _face) |
| void | onTimedActionStart (ISBaseTimedAction action) |
| ISBuildIsoEntity (IsoPlayer character, SpriteConfigManager::ObjectInfo objectInfo, number nSprite, ArrayList< ItemContainer > containers, BuildLogic logic) | |
| Public Member Functions inherited from ISBuildingObject | |
| void | initialise () |
| void | setCanPassThrough (string passThrough) |
| void | setNorthSprite (string sprite) |
| void | setEastSprite (string sprite) |
| void | setSouthSprite (string sprite) |
| void | setSprite (string sprite) |
| void | setDragNilAfterPlace (boolean nilAfter) |
| void | tryBuild (number x, number y, number z) |
| void | onActionComplete () |
| boolean | walkTo (number x, number y, number z) |
| void | onTimedActionStart (ISBaseTimedAction action) |
| void | onTimedActionStop (ISBaseTimedAction action) |
| void | updateModData () |
| boolean | haveMaterial (IsoGridSquare square) |
| void | reinit () |
| void | reset () |
| void | init () |
| string | getSprite () |
| boolean | isValid (IsoGridSquare square) |
| void | render (number x, number y, number z, IsoGridSquare square) |
| void | rotateKey (integer key) |
| void | rotateMouse (number x, number y) |
| void | deactivate () |
| void | onJoypadPressButton (integer joypadIndex, JoypadData joypadData, integer button) |
| void | onJoypadDirDown (JoypadData joypadData) |
| void | onJoypadDirUp (JoypadData joypadData) |
| void | onJoypadDirRight (JoypadData joypadData) |
| void | onJoypadDirLeft (JoypadData joypadData) |
| string | getAPrompt () |
| string | getBPrompt () |
| string | getYPrompt () |
| string | getLBPrompt () |
| string | getRBPrompt () |
| IsoSprite | getFloorCursorSprite () |
| void | update () |
| void | renderOpaqueObjectsInWorld (number x, number y, number z, IsoGridSquare square) |
| Public Member Functions inherited from ISBaseObject | |
| void | initialise () |
| ISBaseObject | derive (string type) |
| void | addEventListener (string _event, function _callback, unknown _target) |
| void | removeEventListener (string _event, function _callback) |
| void | triggerEvent (string _event, unknown ...) |
| void | clearEventListeners () |
| ISBaseObject () | |
Static Public Member Functions | |
| static SpriteConfigManager::ObjectInfo[] | GetAllBuildableEntities () |
| static SpriteConfigManager::ObjectInfo[] | GetBuildableEntities (IsoPlayer _player) |
| static boolean | ConsumeBuildEntityItems (SpriteConfigManager::ObjectInfo _info, IsoPlayer _player) |
| static boolean | predicateMaterial (InventoryItem item) |
| static table< string, umbrella::ISBuildIsoEntity::ItemResult > | GetAllGroundItemsForPlayer (IsoPlayer _player) |
| Static Public Member Functions inherited from ISBuildingObject | |
| static void | onDestroy (IsoThumpable thump, IsoPlayer player) |
| static void | removeFromGround (IsoGridSquare square) |
Public Attributes | |
| IsoSprite | tileCheck |
| boolean | isWallLike |
| IsoThumpable | previousStageObject |
| IsoGridSquare | sq |
| boolean | blockAllTheSquare |
| boolean | hoppable |
| boolean | isStairs |
| boolean | isFloor |
| SpriteConfigManager::FaceInfo | face |
| integer | nSpriteCache |
| IsoPlayer | character |
| ArrayList< ItemContainer > | containers |
| string | name |
| boolean | objectInfo |
| boolean | craftRecipe |
| BuildLogic | buildPanelLogic |
| boolean | dontNeedFrame |
| boolean | needWindowFrame |
| boolean | needToBeAgainstWall |
| boolean | isPole |
| ArrayList< string > | previousStages |
| integer | bonusHealth |
| boolean | buildLow |
| table< string, IsoSprite > | spriteCache |
| IsoSprite | tileSprite |
| boolean | blockAfterPlace |
| string | corner |
| boolean | noNeedHammer |
| number | maxTime |
| string | craftingBank |
| string | completionSound |
| boolean | canBeLockedByPadlock |
| Public Attributes inherited from ISBuildingObject | |
| boolean | canPassThrough |
| string | northSprite |
| string | eastSprite |
| string | southSprite |
| string | sprite |
| string | chosenSprite |
| boolean | dragNilAfterPlace |
| boolean | blockBuild |
| boolean | isLeftDown |
| boolean | clickedUI |
| boolean | canBeBuild |
| boolean | build |
| IsoGridSquare | square |
| integer | nSprite |
| boolean | north |
| boolean | south |
| boolean | east |
| boolean | west |
| number | xJoypad |
| number | yJoypad |
| number | zJoypad |
| boolean | isWallLike |
| boolean | isCorner |
| string | completionSound |
| boolean | canBeAlwaysPlaced |
| boolean | isContainer |
| boolean | canBarricade |
| number | thumpDmg |
| boolean | isDoor |
| boolean | isDoorFrame |
| number | crossSpeed |
| boolean | blockAllTheSquare |
| boolean | dismantable |
| boolean | canBePlastered |
| boolean | hoppable |
| boolean | isThumpable |
| boolean | isFloor |
| table | modData |
| IsoSprite | RENDER_SPRITE_FLOOR |
| IsoSprite | RENDER_SPRITE |
| string | RENDER_SPRITE_NAME |
| Public Attributes inherited from ISBaseObject | |
| string | Type |
| table< string, table< function, unknown > > | __eventListeners |
Additional Inherited Members | |
| Static Public Attributes inherited from ISBuildingObject | |
| static IsoSprite | floorCursorSprite |
| ISBuildIsoEntity::ISBuildIsoEntity | ( | IsoPlayer | character, |
| SpriteConfigManager::ObjectInfo | objectInfo, | ||
| number | nSprite, | ||
| ArrayList< ItemContainer > | containers, | ||
| BuildLogic | logic ) |
| void ISBuildIsoEntity::cacheSprites | ( | SpriteConfigManager::FaceInfo | _face | ) |
|
static |
| boolean ISBuildIsoEntity::create | ( | number | x, |
| number | y, | ||
| number | z, | ||
| boolean | north, | ||
| string | sprite ) |
|
static |
|
static |
|
static |
| SpriteConfigManager::FaceInfo ISBuildIsoEntity::getFace | ( | ) |
| number ISBuildIsoEntity::getHealth | ( | ) |
| IsoGridSquare[] ISBuildIsoEntity::getOccupiedTiles | ( | IsoGridSquare | square | ) |
| SpriteConfigManager::FaceInfo ISBuildIsoEntity::getOpenFace | ( | boolean | _north | ) |
| boolean ISBuildIsoEntity::isObjectSpriteBlockingWallPlacement | ( | string | _sprite, |
| boolean | _north ) |
| boolean ISBuildIsoEntity::isValid | ( | IsoGridSquare | square | ) |
| boolean ISBuildIsoEntity::isValidPerSquare | ( | IsoGridSquare | square, |
| SpriteConfigManager::TileInfo | tileInfo, | ||
| boolean | _requiresFloor, | ||
| boolean | _extendsN, | ||
| boolean | _extendsW ) |
| void ISBuildIsoEntity::onTimedActionStart | ( | ISBaseTimedAction | action | ) |
|
static |
| void ISBuildIsoEntity::removeFromGround | ( | IsoGridSquare | square | ) |
| void ISBuildIsoEntity::render | ( | number | x, |
| number | y, | ||
| number | z, | ||
| IsoGridSquare | square ) |
| void ISBuildIsoEntity::rotateKey | ( | integer | key | ) |
| void ISBuildIsoEntity::setInfo | ( | IsoGridSquare | square, |
| boolean | north, | ||
| string | sprite, | ||
| string | openSprite ) |
| boolean ISBuildIsoEntity::walkTo | ( | number | x, |
| number | y, | ||
| number | z ) |
| boolean ISBuildIsoEntity::blockAfterPlace |
| boolean ISBuildIsoEntity::blockAllTheSquare |
| integer ISBuildIsoEntity::bonusHealth |
| boolean ISBuildIsoEntity::buildLow |
| BuildLogic ISBuildIsoEntity::buildPanelLogic |
| boolean ISBuildIsoEntity::canBeLockedByPadlock |
| IsoPlayer ISBuildIsoEntity::character |
| string ISBuildIsoEntity::completionSound |
| ArrayList<ItemContainer> ISBuildIsoEntity::containers |
| string ISBuildIsoEntity::corner |
| string ISBuildIsoEntity::craftingBank |
| boolean ISBuildIsoEntity::craftRecipe |
| boolean ISBuildIsoEntity::dontNeedFrame |
| SpriteConfigManager::FaceInfo ISBuildIsoEntity::face |
| boolean ISBuildIsoEntity::hoppable |
| boolean ISBuildIsoEntity::isFloor |
| boolean ISBuildIsoEntity::isPole |
| boolean ISBuildIsoEntity::isStairs |
| boolean ISBuildIsoEntity::isWallLike |
| number ISBuildIsoEntity::maxTime |
| string ISBuildIsoEntity::name |
| boolean ISBuildIsoEntity::needToBeAgainstWall |
| boolean ISBuildIsoEntity::needWindowFrame |
| boolean ISBuildIsoEntity::noNeedHammer |
| integer ISBuildIsoEntity::nSpriteCache |
| boolean ISBuildIsoEntity::objectInfo |
| IsoThumpable ISBuildIsoEntity::previousStageObject |
| ArrayList<string> ISBuildIsoEntity::previousStages |
| table<string, IsoSprite> ISBuildIsoEntity::spriteCache |
| IsoGridSquare ISBuildIsoEntity::sq |
| IsoSprite ISBuildIsoEntity::tileCheck |
| IsoSprite ISBuildIsoEntity::tileSprite |