Messages related to the Collectionproxy module.

Static variables

@:value(new Message<Void>("async_load"))staticread onlyasync_load:Message<Void> = new Message<Void>("async_load")

Tells a collection proxy to start asynchronous loading of the referenced collection.

Post this message to a collection-proxy-component to start background loading of the referenced collection. When the loading has completed, the message proxy_loaded will be sent back to the script.

A loaded collection must be initialized (message init) and enabled (message enable) in order to be simulated and drawn.

@:value(new Message<Void>("disable"))staticread onlydisable:Message<Void> = new Message<Void>("disable")

Tells a collection proxy to disable the referenced collection.

Post this message to a collection-proxy-component to disable the referenced collection, which in turn disables the contained game objects and components.

@:value(new Message<Void>("enable"))staticread onlyenable:Message<Void> = new Message<Void>("enable")

Tells a collection proxy to enable the referenced collection.

Post this message to a collection-proxy-component to enable the referenced collection, which in turn enables the contained game objects and components. If the referenced collection was not initialized prior to this call, it will automatically be initialized.

@:value(new Message<Void>("final"))staticread onlyfinal_:Message<Void> = new Message<Void>("final")

Tells a collection proxy to finalize the referenced collection.

Post this message to a collection-proxy-component to finalize the referenced collection, which in turn finalizes the contained game objects and components.

@:value(new Message<Void>("init"))staticread onlyinit:Message<Void> = new Message<Void>("init")

Tells a collection proxy to initialize the loaded collection.

Post this message to a collection-proxy-component to initialize the game objects and components in the referenced collection. Sending enable to an uninitialized collection proxy automatically initializes it. The init message simply provides a higher level of control.

@:value(new Message<Void>("load"))staticread onlyload:Message<Void> = new Message<Void>("load")

Tells a collection proxy to start loading the referenced collection.

Post this message to a collection-proxy-component to start the loading of the referenced collection. When the loading has completed, the message proxy_loaded will be sent back to the script.

A loaded collection must be initialized (message init) and enabled (message enable) in order to be simulated and drawn.

@:value(new Message<Void>("proxy_loaded"))staticread onlyproxy_loaded:Message<Void> = new Message<Void>("proxy_loaded")

Reports that a collection proxy has loaded its referenced collection.

This message is sent back to the script that initiated a collection proxy load when the referenced collection is loaded. See documentation for "load" for examples how to use.

@:value(new Message<Void>("proxy_unloaded"))staticread onlyproxy_unloaded:Message<Void> = new Message<Void>("proxy_unloaded")

Reports that a collection proxy has unloaded its referenced collection.

This message is sent back to the script that initiated an unload with a collection proxy when the referenced collection is unloaded. See documentation for "unload" for examples how to use.

@:value(new Message<CollectionproxyMessageSetTimeStep>("set_time_step"))staticread onlyset_time_step:Message<CollectionproxyMessageSetTimeStep> = new Message<CollectionproxyMessageSetTimeStep>("set_time_step")

Sets the time-step for update.

Post this message to a collection-proxy-component to modify the time-step used when updating the collection controlled by the proxy. The time-step is modified by a scaling factor and can be incremented either continuously or in discrete steps.

The continuous mode can be used for slow-motion or fast-forward effects.

The discrete mode is only useful when scaling the time-step to pass slower than real time (factor is below 1). The time-step will then be set to 0 for as many frames as the scaling demands and then take on the full real-time-step for one frame, to simulate pulses. E.g. if factor is set to 0.1 the time-step would be 0 for 9 frames, then be 1/60 for one frame, 0 for 9 frames, and so on. The result in practice is that the game looks like it's updated at a much lower frequency than 60 Hz, which can be useful for debugging when each frame needs to be inspected.

@:value(new Message<Void>("unload"))staticread onlyunload:Message<Void> = new Message<Void>("unload")

Tells a collection proxy to start unloading the referenced collection.

Post this message to a collection-proxy-component to start the unloading of the referenced collection. When the unloading has completed, the message proxy_unloaded will be sent back to the script.