add(name, func) {
		if (this.#functions.has(name)) {
			this.#functions.get(name).push(func);
		} else {
			this.#functions.set(name, [func]);
		}
	}
Adds a function to the list of functions to call for a given name.
@param {string} name The name of the function to call.
@param {Function} func The function to call.
@returns {void}