export class ECSAnimationBridge {
    components = new Map();
    register(entityName, component) {
        if (entityName.trim().length === 0) {
            throw new Error("ECS animation target name cannot be empty.");
        }
        this.components.set(entityName, component);
    }
    unregister(entityName) {
        this.components.delete(entityName);
    }
    setAnimationValue(target, value) {
        const [entityName, property] = target.split(".");
        if (!entityName || !property) {
            throw new Error(`Invalid ECS animation target ${target}.`);
        }
        const component = this.components.get(entityName);
        if (!component) {
            throw new Error(`Missing ECS animation target ${entityName}.`);
        }
        component[property] = Array.isArray(value) ? [...value] : value;
    }
}
//# sourceMappingURL=ECSAnimationBridge.js.map