public static void Setup(API api, string path = null, bool cache = true) { VehicleInfoLoader.Setup(Path.Combine(api.getResourceFolder(), path ?? $"vehicleInfo{Path.DirectorySeparatorChar}"), cache); }
public static Task <VehicleManifest> GetAsync(VehicleHash hash) { return(VehicleInfoLoader.GetAsync((int)hash)); }
public static VehicleManifest Get(VehicleHash hash) { return(VehicleInfoLoader.Get((int)hash)); }
public static async Task <VehicleManifest> ManifestAsync(this Vehicle vehicle) { return(await VehicleInfoLoader.GetAsync(vehicle.model)); }
public static VehicleManifest Manifest(this Vehicle vehicle) { return(VehicleInfoLoader.Get(vehicle.model)); }
public static void Setup(Script scriptEngine, string path = null, bool cache = true) { VehicleInfoLoader.Setup(Path.Combine(NAPI.Resource.GetResourceFolder(scriptEngine), path ?? $"vehicleInfo{Path.DirectorySeparatorChar}"), cache); }