Valetudo/backend/lib/core/capabilities/MapSegmentEditCapability.js

40 lines
1.1 KiB
JavaScript

const Capability = require("./Capability");
const NotImplementedError = require("../NotImplementedError");
/**
* @template {import("../ValetudoRobot")} T
* @extends Capability<T>
*/
class MapSegmentEditCapability extends Capability {
/**
* @param {import("../../entities/core/ValetudoMapSegment")} segmentA
* @param {import("../../entities/core/ValetudoMapSegment")} segmentB
* @returns {Promise<void>}
*/
async joinSegments(segmentA, segmentB) {
throw new NotImplementedError();
}
/**
* @param {import("../../entities/core/ValetudoMapSegment")} segment
* @param {object} pA
* @param {number} pA.x
* @param {number} pA.y
* @param {object} pB
* @param {number} pB.x
* @param {number} pB.y
* @returns {Promise<void>}
*/
async splitSegment(segment, pA, pB) {
throw new NotImplementedError();
}
getType() {
return MapSegmentEditCapability.TYPE;
}
}
MapSegmentEditCapability.TYPE = "MapSegmentEditCapability";
module.exports = MapSegmentEditCapability;