All files / src/controller/input/types inputType.js

100% Statements 12/12
100% Branches 4/4
100% Functions 3/3
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24  1x 1x 1x     24x 1x   23x     248x 1x   247x     41x 41x     1x  
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InputType = void 0;
const exceptions_1 = require("../../../environment/exceptions");
class InputType {
    get engineCore() {
        if (!this._engineCore) {
            throw new exceptions_1.NotInitializedException("EngineCore");
        }
        return this._engineCore;
    }
    get inputReceiver() {
        if (!this._inputReceiver) {
            throw new exceptions_1.NotInitializedException("InputReceiver");
        }
        return this._inputReceiver;
    }
    initialize(engineCore, inputReceiver) {
        this._inputReceiver = inputReceiver;
        this._engineCore = engineCore;
    }
}
exports.InputType = InputType;