Module EntityScript

.

Class EntityScript

EntityScript:remove () .
EntityScript:spawn () event.
EntityScript:frame (time) event.
EntityScript:despawn () event.
EntityScript:createEntityScript (classname) .
EntityScript:onHorizontalRequest (escript_id, data) event.
EntityScript:onVertical (player_id, data) event.
EntityScript:requestHorizontal (destid, data, callback) request data from another entity script on server or client side.
EntityScript:sendVertical (dest_player, data, mode) send vertical data (entity to entity, server<->client).
EntityScript:getPersistID () .
EntityScript:readFile (path) .
EntityScript:writeFile (path, data) .
EntityScript:makeDir (path) .
EntityScript:rmDir (path) .
EntityScript:rmFile (path) .
EntityScript:checkDir (path) .
EntityScript:checkFile (path) .
EntityScript:listDir (path, ffiles, fdirs, frecursive) .
EntityScript:createFalseInstance () .
EntityScript:createAudioBus () .
EntityScript:createMusicBus () .
EntityScript:createSoundBus () .
EntityScript:createAudioStation () .
EntityScript:createBrowserScreen () .
EntityScript:createDirectionalLight () .
EntityScript:createPointLight () .
EntityScript:createSpotLight () .
EntityScript:createSquareLight () .
EntityScript:sceneAdd (obj) .
EntityScript:sceneRm (obj) .
EntityScript:getSyncObject (id) .
EntityScript:onButtonPressed (button) event.
EntityScript:onButtonReleased (button) event.
EntityScript:onButtonTouched (button) event.
EntityScript:onButtonUnTouched (button) event.
EntityScript:onPlayerJoin (id) event.
EntityScript:onPlayerLeave (id) event.


Class EntityScript

(Object).
EntityScript:remove ()
.
EntityScript:spawn ()
event.
EntityScript:frame (time)
event.

Parameters:

  • time
EntityScript:despawn ()
event.
EntityScript:createEntityScript (classname)
.

Parameters:

  • classname

Returns:

    Uint32 escript id
EntityScript:onHorizontalRequest (escript_id, data)
event.

Parameters:

  • escript_id
  • data
EntityScript:onVertical (player_id, data)
event.

Parameters:

  • player_id
  • data
EntityScript:requestHorizontal (destid, data, callback)
request data from another entity script on server or client side.

Parameters:

  • destid
  • data
  • callback
EntityScript:sendVertical (dest_player, data, mode)
send vertical data (entity to entity, server<->client).

Parameters:

  • dest_player
  • data
  • mode
EntityScript:getPersistID ()
.

Returns:

    string
EntityScript:readFile (path)
.

Parameters:

  • path
EntityScript:writeFile (path, data)
.

Parameters:

  • path
  • data
EntityScript:makeDir (path)
.

Parameters:

  • path
EntityScript:rmDir (path)
.

Parameters:

  • path
EntityScript:rmFile (path)
.

Parameters:

  • path
EntityScript:checkDir (path)
.

Parameters:

  • path
EntityScript:checkFile (path)
.

Parameters:

  • path
EntityScript:listDir (path, ffiles, fdirs, frecursive)
.

Parameters:

  • path
  • ffiles
  • fdirs
  • frecursive f... are flags
EntityScript:createFalseInstance ()
.

Returns:

    FalseInstance
EntityScript:createAudioBus ()
.

Returns:

    AudioBus
EntityScript:createMusicBus ()
.

Returns:

    MusicBus
EntityScript:createSoundBus ()
.

Returns:

    SoundBus
EntityScript:createAudioStation ()
.

Returns:

    AudioStation
EntityScript:createBrowserScreen ()
.

Returns:

    BrowserScreen
EntityScript:createDirectionalLight ()
.

Returns:

    DirectionalLight
EntityScript:createPointLight ()
.

Returns:

    PointLight
EntityScript:createSpotLight ()
.

Returns:

    SpotLight
EntityScript:createSquareLight ()
.

Returns:

    SquareLight
EntityScript:sceneAdd (obj)
.

Parameters:

  • obj Object
EntityScript:sceneRm (obj)
.

Parameters:

  • obj Object
EntityScript:getSyncObject (id)
.

Parameters:

  • id

Returns:

    Object
EntityScript:onButtonPressed (button)
event.

Parameters:

  • button ControllerButton
EntityScript:onButtonReleased (button)
event.

Parameters:

  • button ControllerButton
EntityScript:onButtonTouched (button)
event.

Parameters:

  • button ControllerButton
EntityScript:onButtonUnTouched (button)
event.

Parameters:

  • button ControllerButton
EntityScript:onPlayerJoin (id)
event.

Parameters:

  • id
EntityScript:onPlayerLeave (id)
event.

Parameters:

  • id
generated by LDoc 1.4.6 Last updated 2017-04-02 18:22:49