rock-mod
Version:
Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.
51 lines (50 loc) • 1.36 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockMarker = void 0;
const MockWorldObject_1 = require("../worldObject/MockWorldObject");
const utils_1 = require("../../../../shared/common/utils");
const shared_1 = require("../../../../shared");
class MockMarker extends MockWorldObject_1.MockWorldObject {
_markerType;
_visible;
_scale;
_color;
_rotation;
get markerType() {
return this._markerType;
}
get visible() {
return this._visible;
}
get scale() {
return this._scale;
}
get color() {
return this._color;
}
get rotation() {
return this._rotation;
}
constructor(options) {
super(options);
const { markerType = shared_1.IMarkerType.MarkerArrow, scale = 1, color = new utils_1.RGBA(255, 255, 255), rotation = new utils_1.Vector3D(0, 0, 0), } = options;
this._markerType = markerType;
this._visible = true;
this._scale = scale;
this._color = color;
this._rotation = rotation;
}
setVisible(value) {
this._visible = value;
}
setScale(scale) {
this._scale = scale;
}
setColor(color) {
this._color = color;
}
setRotation(value) {
this._rotation = value;
}
}
exports.MockMarker = MockMarker;