dist/server-module/lance-gg.js
/**
     * Creates a new networkedEvent
     * @param {Object} payload an object representing the payload to be transferred over the wire
     * @return {Serializable} the new networkedEvent object
     */
Creates a new networkedEvent
@param {Object} payload an object representing the payload to be transferred over the wire
@return {Serializable} the new networkedEvent object
Creates a new networkedEvent @param { Object } payload an object representing the payload to be transferred over the wire @return { Serializable } the new networkedEvent object
create(payload) {
        let networkedEvent = new Serializable();
        networkedEvent.classId = Utils.hashStr(this.eventName);
        networkedEvent.eventName = this.eventName;
        if (this.netScheme) {
            networkedEvent.netScheme = Object.assign({}, this.netScheme);
            for (let property of Object.keys(this.netScheme)) {
                networkedEvent[property] = payload[property];
            }
        }
        return networkedEvent;
    }
create ( payload ) { let networkedEvent = new Serializable ( ) ; networkedEvent . classId = Utils . hashStr ( this . eventName ) ; networkedEvent . eventName = this . eventName ; if ( this . netScheme ) { networkedEvent . netScheme = Object . assign ( { } , this . netScheme ) ; for ( let property of Object . keys ( this . netScheme ) ) { networkedEvent [ property ] = payload [ property ] ; } } return networkedEvent ; }
Creates a new networkedEvent
 @param {Object} payload an object representing the payload to be transferred over the wire
 @return {Serializable} the new networkedEvent object
Creates a new networkedEvent @param { Object } payload an object representing the payload to be transferred over the wire @return { Serializable } the new networkedEvent object
// copy properties from the networkedEvent instance to its ad-hoc netsScheme