"use strict";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ManagedComponent = void 0;
const ste_events_1 = require("ste-events");
class ManagedComponent {
    get onPropertyChanged() {
        return this._onPropertyChanged.asEvent();
    }
    constructor(id, data) {
        this._onPropertyChanged = new ste_events_1.EventDispatcher();
        this._data = data;
        this.id = id;
    }
    getData() {
        return this._data;
    }
    getProperty(id) {
        return this._data[id];
    }
    setProperty(id, value) {
        this._data[id] = value;
    }
}
exports.ManagedComponent = ManagedComponent;

//# sourceMappingURL=../maps/minecraft/ManagedComponent.js.map
