src/serialize/Serializer.js
/**
     * Registers a new class with the serializer, so it may be deserialized later
     * @param {Function} classObj reference to the class (not an instance!)
     * @param {String} classId Unit specifying a class ID
     */
Registers a new class with the serializer, so it may be deserialized later
@param {Function} classObj reference to the class (not an instance!)
@param {String} classId Unit specifying a class ID
Registers a new class with the serializer so it may be deserialized later @param { Function } classObj reference to the class ( not an instance! ) @param { String } classId Unit specifying a class ID
registerClass(classObj, classId) {
        classId = classId ? classId : Utils.hashStr(classObj.name);
        if (this.registeredClasses[classId]) {
            console.error(`Serializer: accidental override of classId ${classId} when registering class`, classObj);
        }
        this.registeredClasses[classId] = classObj;
    }
registerClass ( classObj , classId ) { classId = classId ? classId : Utils . hashStr ( classObj . name ) ; if ( this . registeredClasses [ classId ] ) { console . error ( ` ${ classId } ` , classObj ) ; } this . registeredClasses [ classId ] = classObj ; }
Registers a new class with the serializer, so it may be deserialized later
 @param {Function} classObj reference to the class (not an instance!)
Registers a new class with the serializer so it may be deserialized later @param { Function } classObj reference to the class ( not an instance! )
// if no classId is specified, hash one from the class name