Repository
public class |source

ComponentProxy

Extends:

* → ComponentProxy

ComponentProxy is a proxy that converts (like a kind of casting) scripts into Mobilizing Components. It was designed specifically to convert users script to regular Components, so they can be used besides all the other Components used by the program. The script should implement the methods preLoad(), setup(), update(). Users can define their own Component using this class for converting their script to a regular Mobilizing Component.

Example:

    //to do

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public
public

preLoad(args: Rest param)

preLoad the targetScript

public
public

prepare(args: ...*)

public

Set's up the targetScript

public

Update the targetScript

Public Constructors

public constructor(params: Object) source

Params:

NameTypeAttributeDescription
paramsObject

Parameters object, given by the constructor.

params.targetScriptScript

The Mobilizing user's script to convert in a Component

Public Members

public targetScript: * source

Public Methods

public postUpdate() source

public preLoad(args: Rest param) source

preLoad the targetScript

Params:

NameTypeAttributeDescription
argsRest param

public preUpdate() source

public prepare(args: ...*) source

Params:

NameTypeAttributeDescription
args...*

public setup() source

Set's up the targetScript

public update() source

Update the targetScript