UNPKG

rock-mod

Version:

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

45 lines (44 loc) 1.07 kB
import { RageWorldObject } from "../worldObject/RageWorldObject"; export class RageBlip extends RageWorldObject { get _blipEntity() { return this.mpEntity; } get sprite() { return this._blipEntity.getSprite(); } get name() { return this._name; } get color() { return this._blipEntity.getColour(); } get alpha() { return this.mpEntity.alpha; } get global() { return this._global; } get shortRange() { return this._blipEntity.isShortRange(); } constructor(options) { super(options); this._global = options.global; this._name = options.name; } setSprite(value) { this._blipEntity.setSprite(value); } setColor(value) { this._blipEntity.setColour(value); } setAlpha(value) { this.mpEntity.alpha = value; } setShowHeadingIndicator(value) { this._blipEntity.setShowHeadingIndicator(value); } setRotation(value) { this._blipEntity.setRotation(value); } }