dist/client/lance-gg.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
function registerClass(classObj, classId) {
        classId = classId ? classId : Utils.hashStr(classObj.name);
        if (this.registeredClasses[classId]) {
          console.error("Serializer: accidental override of classId ".concat(classId, " when registering class"), classObj);
        }
        this.registeredClasses[classId] = classObj;
      }
function registerClass ( classObj , classId ) { classId = classId ? classId : Utils . hashStr ( classObj . name ) ; if ( this . registeredClasses [ classId ] ) { console . error ( "Serializer: accidental override of classId " . concat ( classId , " when registering class" ) , 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