types/base.js

'use strict';

/**
 * @author schukai GmbH
 */

import {Monster} from '../namespace.js';


/**
 * This is the base class from which all monster classes are derived.
 *
 * you can call the method via the monster namespace `new Monster.Types.Object()`.
 *
 * ```
 * <script type="module">
 * import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.4.0/dist/modules/types/base.js';
 * console.log(new Monster.Types.Object())
 * console.log(new Monster.Types.Object())
 * </script>
 * ```
 *
 * Alternatively, you can also integrate this function individually.
 *
 * ```
 * <script type="module">
 * import {Object} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.4.0/dist/modules/types/base.js';
 * console.log(new Object())
 * console.log(new Object())
 * </script>
 * ```
 *
 * @since 1.0.0
 * @copyright schukai GmbH
 * @memberOf Monster/Types
 */
class Object {

    /**
     *
     */
    constructor() {
    }

    /**
     *
     * @returns {string}
     */
    toString() {
        return JSON.stringify(this);
    };


}

Monster.assignToNamespace('Monster.Types', Object);
export {Monster, Object}