コード例 #1
0
 public static void Setup(API api, string path = null, bool cache = true)
 {
     VehicleInfoLoader.Setup(Path.Combine(api.getResourceFolder(), path ?? $"vehicleInfo{Path.DirectorySeparatorChar}"), cache);
 }
コード例 #2
0
 public static Task <VehicleManifest> GetAsync(VehicleHash hash)
 {
     return(VehicleInfoLoader.GetAsync((int)hash));
 }
コード例 #3
0
 public static VehicleManifest Get(VehicleHash hash)
 {
     return(VehicleInfoLoader.Get((int)hash));
 }
コード例 #4
0
 public static async Task <VehicleManifest> ManifestAsync(this Vehicle vehicle)
 {
     return(await VehicleInfoLoader.GetAsync(vehicle.model));
 }
コード例 #5
0
 public static VehicleManifest Manifest(this Vehicle vehicle)
 {
     return(VehicleInfoLoader.Get(vehicle.model));
 }
コード例 #6
0
 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);
 }