var Stormancer;
(function (Stormancer) {
var PluginBuildContext = (function () {
/**
Initializes a new instance of the PluginBuildContext class.
@class PluginBuildContext
@classdesc Object passed to the Build method of plugins to register to the available Stormancer client events.
@memberof Stormancer
*/
function PluginBuildContext() {
/**
Event fired when a scene object is created. That's an array of functions which are called and have the scene instance as first parameter.
@member Stormancer.PluginBuildContext#sceneCreated
@type {function[]}
*/
this.sceneCreated = [];
/**
Event fired when a client object is created. That's an array of functions which are called and have the scene instance as first parameter.
@member Stormancer.PluginBuildContext#clientCreated
@type {function[]}
*/
this.clientCreated = [];
/**
Event fired when a a scene is connected to the server. That's an array of functions which are called and have the scene instance as first parameter.
@member Stormancer.PluginBuildContext#sceneConnected
@type {function[]}
*/
this.sceneConnected = [];
/**
Event fired when a scene is disconnected. That's an array of functions which are called and have the scene instance as first parameter.
@member Stormancer.PluginBuildContext#sceneDisconnected
@type {function[]}
*/
this.sceneDisconnected = [];
/**
Event fired when a packet is received from a remote peer. That's an array of functions which are called and have the scene instance as first parameter.
@member Stormancer.PluginBuildContext#packetReceived
@type {function[]}
*/
this.packetReceived = [];
}
return PluginBuildContext;
})();
Stormancer.PluginBuildContext = PluginBuildContext;
})(Stormancer || (Stormancer = {}));
//# sourceMappingURL=PluginBuildContext.js.map