DetectVersion() public static method

Attempt to detect the version of the resource map, returning it or ResourceMapVersion.None if this is not a resource map or is not known to be one.
public static DetectVersion ( AssetLoader loader ) : ResourceMapVersion
loader Glare.Assets.AssetLoader
return ResourceMapVersion
コード例 #1
0
 public override LoadMatchStrength LoadMatch(AssetLoader loader)
 {
     return(ResourceMap.DetectVersion(loader) == ResourceMapVersion.None ? LoadMatchStrength.None : LoadMatchStrength.Medium);
 }