using System;
using System.Collections.Generic;
using System.Text;
using GTANetworkAPI;
using ReallifeGamemode.Server.Core.API;
using ReallifeGamemode.Server.Types;

namespace ReallifeGamemode.Server.Core.RageMP
{
  class RageVehicle : RageEntity, IVehicle
  {
    private readonly Vehicle vehicle;

    public RageVehicle(Vehicle vehicle) : base(vehicle)
    {
      this.vehicle = vehicle;
    }

    public VehicleModel Model => (VehicleModel)vehicle.Model;

    public sbyte PrimaryColor { get => (sbyte)vehicle.PrimaryColor; set => vehicle.PrimaryColor = value; }

    public sbyte SecondaryColor { get => (sbyte)vehicle.SecondaryColor; set => vehicle.SecondaryColor = value; }

    public void Repair()
    {
      vehicle.Repair();
    }
  }
}
