Module LevelBlockClass

Level Block class and functions

Class BaseBlock

BaseBlock.id ID of Block registered in config pack (Read Only)
BaseBlock.contentNpcId ID of NPC or count of coins contained in the block.
BaseBlock.contentNPC_ID ID of NPC or count of coins contained in the block, alias to contentNpcId
BaseBlock.contentNpcId Legacy merge of NPC-ID and count of coins contained in the block.
BaseBlock.True Is block invisible
BaseBlock.True Is block has a slippery surface
BaseBlock.If The block is solid (collision is turned on all sides) (Read Only)
BaseBlock.isDestroyed Is block destroyed (Read Only)
BaseBlock.is_destroyed Is block destroyed, alias to isDestroyed (Read Only)
BaseBlock:remove (playEffect) Destroy this block
BaseBlock:destroy (playEffect) Destroy this block, alias to remove
BaseBlock:hit () Hit this block at right side
BaseBlock:hit (direction) Hit this block to target side
BaseBlock:hit (direction, player) Hit this block to target side by giving playable character
BaseBlock:hit (direction, player, number) Hit this block to target side by giving playable character, multiple times on one call
BaseBlock:transformTo (id) Transform this block into another
BaseBlock:transformTo (id, type) Transform this block into another block or into NPC
BaseBlock.transformedFromBlockID Original ID of block from which NPC was transformed (Read Only)
BaseBlock.transformedFromNpcID Original ID of NPC from which NPC was transformed (Read Only)


Class BaseBlock

Block Object base class, inherited from PhysBaseClass.PhysBase
BaseBlock.id
ID of Block registered in config pack (Read Only)
  • id ulong
BaseBlock.contentNpcId
ID of NPC or count of coins contained in the block.
  • contentNpcId long Positive - ID of NPC, Negative - Count of coins
BaseBlock.contentNPC_ID
ID of NPC or count of coins contained in the block, alias to contentNpcId
  • contentNPC_ID long Positive - ID of NPC, Negative - Count of coins
BaseBlock.contentNpcId
Legacy merge of NPC-ID and count of coins contained in the block.
  • contentNpcId long Between 1 and 999 - count of coins, starts from 1001, NPC-ID with added 1000 (to get NPC-ID you need to just subtract 1000)
BaseBlock.True
Is block invisible
  • True bool if block is invisible
BaseBlock.True
Is block has a slippery surface
  • True bool if block has a slippery surface
BaseBlock.If
The block is solid (collision is turned on all sides) (Read Only)
  • If bool block has all collisions turned on
BaseBlock.isDestroyed
Is block destroyed (Read Only)
  • isDestroyed bool true if block is destroyed
BaseBlock.is_destroyed
Is block destroyed, alias to isDestroyed (Read Only)
  • is_destroyed bool true if block is destroyed
BaseBlock:remove (playEffect)
Destroy this block

Parameters:

  • playEffect bool Play destruction effect while destroying this block
BaseBlock:destroy (playEffect)
Destroy this block, alias to remove

Parameters:

  • playEffect bool Play destruction effect while destroying this block
BaseBlock:hit ()
Hit this block at right side
BaseBlock:hit (direction)
Hit this block to target side

Parameters:

  • direction int Side of block to hit:
    • 0 - left
    • 1 - right
    • 2 - up
    • 3 - down
BaseBlock:hit (direction, player)
Hit this block to target side by giving playable character

Parameters:

  • direction int Side of block to hit:
    • 0 - left
    • 1 - right
    • 2 - up
    • 3 - down
  • player BasePlayer Reference to playable character who hits this block
BaseBlock:hit (direction, player, number)
Hit this block to target side by giving playable character, multiple times on one call

Parameters:

  • direction int Side of block to hit:
    • 0 - left
    • 1 - right
    • 2 - up
    • 3 - down
  • player BasePlayer Reference to playable character who hits this block
  • number int of repeating hits
BaseBlock:transformTo (id)
Transform this block into another

Parameters:

  • id ulong ID of another block to transform
BaseBlock:transformTo (id, type)
Transform this block into another block or into NPC

Parameters:

  • id ulong ID of another block or NPC to transform
  • type int Type of object to transform: 1 - NPC, 2 - Another Block
BaseBlock.transformedFromBlockID
Original ID of block from which NPC was transformed (Read Only)
  • transformedFromBlockID ulong If 0, NPC was not transformed from block
BaseBlock.transformedFromNpcID
Original ID of NPC from which NPC was transformed (Read Only)
  • transformedFromNpcID ulong If 0, NPC was not transformed from another NPC
generated by LDoc 1.4.6 Last updated 2017-08-21 02:20:32