"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Dimension {
    constructor(width, height) {
        this.width = width;
        this.height = height;
    }
}
exports.Dimension = Dimension;
class GameMetadata {
    constructor() {
        this.noAction = false;
        this.noUndo = false;
        this.noRepeatAction = false;
        this.throttleMovement = false;
        this.noRestart = false;
        this.requirePlayerMovement = false;
        this.verboseLogging = false;
    }
    _setValue(key, value) {
        switch (key.toLowerCase()) {
            case 'author':
                this.author = value;
                break;
            case 'homepage':
                this.homepage = value;
                break;
            case 'youtube':
                this.youtube = value;
                break;
            case 'zoomscreen':
                this.zoomscreen = value;
                break;
            case 'flickscreen':
                this.flickscreen = value;
                break;
            case 'color_palette':
                this.colorPalette = value;
                break;
            case 'background_color':
                this.backgroundColor = value;
                break;
            case 'text_color':
                this.textColor = value;
                break;
            case 'realtime_interval':
                this.realtimeInterval = value;
                break;
            case 'key_repeat_interval':
                this.keyRepeatInterval = value;
                break;
            case 'again_interval':
                this.againInterval = value;
                break;
            case 'noaction':
                this.noAction = value;
                break;
            case 'noundo':
                this.noUndo = value;
                break;
            case 'run_rules_on_level_start':
                this.runRulesOnLevelStart = value;
                break;
            case 'norepeat_action':
                this.noRepeatAction = value;
                break;
            case 'throttle_movement':
                this.throttleMovement = value;
                break;
            case 'norestart':
                this.noRestart = value;
                break;
            case 'require_player_movement':
                this.requirePlayerMovement = value;
                break;
            case 'verbose_logging':
                this.verboseLogging = value;
                break;
            default:
                throw new Error(`BUG: Unsupported config field "${key}" with value "${value}"`);
        }
    }
}
exports.GameMetadata = GameMetadata;
//# sourceMappingURL=metadata.js.map