mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
more impls of is_native_extension
This commit is contained in:
@@ -39,6 +39,11 @@ impl ResourceLoader for CurveLoader {
|
||||
&["curve", "crv"]
|
||||
}
|
||||
|
||||
fn is_native_extension(&self, ext: &str) -> bool {
|
||||
fyrox_core::cmp_strings_case_insensitive(ext, "curve")
|
||||
|| fyrox_core::cmp_strings_case_insensitive(ext, "crv")
|
||||
}
|
||||
|
||||
fn data_type_uuid(&self) -> Uuid {
|
||||
CurveResourceState::type_uuid()
|
||||
}
|
||||
|
||||
@@ -1467,6 +1467,10 @@ impl ResourceLoader for SurfaceDataLoader {
|
||||
&["surface"]
|
||||
}
|
||||
|
||||
fn is_native_extension(&self, ext: &str) -> bool {
|
||||
fyrox_core::cmp_strings_case_insensitive(ext, "surface")
|
||||
}
|
||||
|
||||
fn data_type_uuid(&self) -> Uuid {
|
||||
<SurfaceData as TypeUuidProvider>::type_uuid()
|
||||
}
|
||||
|
||||
@@ -585,6 +585,10 @@ impl ResourceLoader for TileMapBrushLoader {
|
||||
&["tile_map_brush"]
|
||||
}
|
||||
|
||||
fn is_native_extension(&self, ext: &str) -> bool {
|
||||
fyrox_core::cmp_strings_case_insensitive(ext, "tile_map_brush")
|
||||
}
|
||||
|
||||
fn data_type_uuid(&self) -> Uuid {
|
||||
<TileMapBrush as TypeUuidProvider>::type_uuid()
|
||||
}
|
||||
|
||||
@@ -2138,6 +2138,10 @@ impl ResourceLoader for TileSetLoader {
|
||||
&["tileset"]
|
||||
}
|
||||
|
||||
fn is_native_extension(&self, ext: &str) -> bool {
|
||||
fyrox_core::cmp_strings_case_insensitive(ext, "tileset")
|
||||
}
|
||||
|
||||
fn data_type_uuid(&self) -> Uuid {
|
||||
<TileSet as TypeUuidProvider>::type_uuid()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user