Module PressureTileUnit
Emits a signal when a player walks on the tile.
Element class: PressureTileUnit
Extends: Element > ElementWithState
Functions
| isDown () | Checks if the pressure is down. | 
| getSignalOut (plug) | Return the value of a signal in the specified OUT plug of the element. | 
| EVENT_pressed () | Deprecated: Event: Someone stepped on the tile. | 
| EVENT_onPressed () | Event: Emitted when the pressure tile is pressed. | 
| EVENT_released () | Deprecated: Event: Someone left the tile. | 
| EVENT_onReleased () | Event: Emitted when the pressure tile is released. | 
| mockRegisterPressed (callback) | Mock only, not in-game: Register a handler for the in-game `pressed()` event. | 
| mockDoPressed () | Mock only, not in-game: Simulates the user stepping on the tile. | 
| mockRegisterReleased (callback) | Mock only, not in-game: Register a handler for the in-game `released()` event. | 
| mockDoReleased () | Mock only, not in-game: Simulates the user stepping off the tile. | 
| mockGetClosure () | Mock only, not in-game: Bundles the object into a closure so functions can be called with "." instead of ":". | 
Functions
- isDown ()
 - 
    Checks if the pressure is down.
    
Returns:
- 
           0/1
        1 when the tile is down, 0 otherwise.
    
 
 - getSignalOut (plug)
 - 
    Return the value of a signal in the specified OUT plug of the element.
Valid plug names are:
- "out" for the out signal.
 
Parameters:
- plug string A valid plug name to query.
 
Returns:
- 
           0/1
        The plug signal state
    
 
 - EVENT_pressed ()
 - 
    Deprecated: Event: Someone stepped on the tile.
Note: This is documentation on an event handler, not a callable method.
This event is deprecated: EVENT_onPressed should be used instead.
See also:
 - EVENT_onPressed ()
 - 
    Event: Emitted when the pressure tile is pressed.
Note: This is documentation on an event handler, not a callable method.
 - EVENT_released ()
 - 
    Deprecated: Event: Someone left the tile.
Note: This is documentation on an event handler, not a callable method.
This event is deprecated: EVENT_onReleased should be used instead.
See also:
 - EVENT_onReleased ()
 - 
    Event: Emitted when the pressure tile is released.
Note: This is documentation on an event handler, not a callable method.
 - mockRegisterPressed (callback)
 - 
    Mock only, not in-game: Register a handler for the in-game `pressed()` event.
    
Parameters:
- callback function The function to call when the tile is pressed.
 
Returns:
- 
           int
        The index of the callback.
    
 
See also:
 - mockDoPressed ()
 - 
    Mock only, not in-game: Simulates the user stepping on the tile.  Calling this while the tile is already deactivated
 is invalid and will have no effect.
Note: The state updates to true before the event handlers are called.
 - mockRegisterReleased (callback)
 - 
    Mock only, not in-game: Register a handler for the in-game `released()` event.
    
Parameters:
- callback function The function to call when the tile is released.
 
Returns:
- 
           int
        The index of the callback.
    
 
See also:
 - mockDoReleased ()
 - 
    Mock only, not in-game: Simulates the user stepping off the tile.  Calling this while the tile is already deactivated
 is invalid and will have no effect.
Note: The state updates to false before the event handlers are called.
 - mockGetClosure ()
 - 
    Mock only, not in-game: Bundles the object into a closure so functions can be called with "." instead of ":".
    
Returns:
- 
           table
        A table encompasing the api calls of object.
    
 
See also: