more impls of is_native_extension

This commit is contained in:
Dmitry
2025-10-19 09:53:50 +03:00
parent c65c847c3b
commit 08d296403a
7 changed files with 29 additions and 0 deletions
+5
View File
@@ -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()
}
+4
View File
@@ -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()
}
+4
View File
@@ -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()
}
+4
View File
@@ -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()
}
+4
View File
@@ -41,6 +41,10 @@ impl ResourceLoader for MaterialLoader {
&["material"]
}
fn is_native_extension(&self, ext: &str) -> bool {
fyrox_core::cmp_strings_case_insensitive(ext, "material")
}
fn data_type_uuid(&self) -> Uuid {
Material::type_uuid()
}
+4
View File
@@ -48,6 +48,10 @@ impl ResourceLoader for UserInterfaceLoader {
&["ui"]
}
fn is_native_extension(&self, ext: &str) -> bool {
fyrox_core::cmp_strings_case_insensitive(ext, "ui")
}
fn data_type_uuid(&self) -> Uuid {
UserInterface::type_uuid()
}
+4
View File
@@ -113,6 +113,10 @@ impl ResourceLoader for StyleLoader {
&["style"]
}
fn is_native_extension(&self, ext: &str) -> bool {
fyrox_core::cmp_strings_case_insensitive(ext, "style")
}
fn data_type_uuid(&self) -> Uuid {
<Style as TypeUuidProvider>::type_uuid()
}