World.loadCellWithHandle
Load a cell. The cell will stay loaded until the cell is released with LoadCellHandle.release()
Kind: Function
Environments: Game
Game
world:loadCellWithHandle( x, y, callback, params, ref )
or when the LoadCellHandle is garbage collected
Parameters:
| Name | Type | Description |
|---|---|---|
world |
World | The world. |
x |
integer | Cell X position. |
y |
integer | Cell Y Position. |
callback (optional) |
string | Lua function to call when cell is loaded. Callback parameters are ( world, x, y, params ) |
params (optional) |
any | Parameter object passed to the callback. |
ref (optional) |
ref | Script ref to callback object. |
Returns:
| Type | Description |
|---|---|
| LoadCellHandle | Handle to releasing cell. |