BaseWithOptions

Monster.Types. BaseWithOptions

This is the base class with options from which some monster classes are derived.

You can call the method via the monster namespace new Monster.Types.BaseWithOptions().

<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.23.0/dist/modules/types/basewithoptions.js';
console.log(new Monster.Types.BaseWithOptions())
</script>

Alternatively, you can also integrate this function individually.

<script type="module">
import {BaseWithOptions} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.23.0/dist/modules/types/basewithoptions.js';
console.log(new BaseWithOptions())
</script>

The class was formerly called Object.

Constructor

# new BaseWithOptions(options)

Parameters:
Name Type Description
options object
Since:
  • 1.13.0

Members

# defaults

can be overridden by child class values

Methods

# getOption(path, defaultValue) → {*}

nested options can be specified by path a.b.c

Parameters:
Name Type Description
path string
defaultValue *
Since:
  • 1.10.0
Returns:
Type
*