UNPKG

rock-mod

Version:

Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.

43 lines (42 loc) 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AltVMarker = void 0; const AltVWorldObject_1 = require("../worldObject/AltVWorldObject"); var Vector3 = AltVShared.Vector3; const utils_1 = require("../../../../shared/common/utils"); class AltVMarker extends AltVWorldObject_1.AltVWorldObject { get markerType() { return this.mpEntity.markerType; } get visible() { return this.mpEntity.visible; } get scale() { return this.mpEntity.scale.z; } get color() { const { r, g, b, a } = this.mpEntity.color; return new utils_1.RGBA(r, g, b, a); } get rotation() { const { x, y, z } = this.mpEntity.rot; return new utils_1.Vector3D(x, y, z); } constructor(options) { super(options); } setVisible(value) { this.mpEntity.visible = value; } setScale(value) { this.mpEntity.scale = new Vector3(0, 0, value); } setColor(value) { const { r, g, b, a } = value; this.mpEntity.color = new AltVShared.RGBA(r, g, b, a); } setRotation(value) { this.mpEntity.rot = new Vector3(value); } } exports.AltVMarker = AltVMarker;