mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-31 01:28:09 +00:00
Move 'hasInvalidEntries' into 'MaterialExtensions.HasInvalidEntries'
This commit is contained in:
17
PCK-Studio/Extensions/MaterialExtensions.cs
Normal file
17
PCK-Studio/Extensions/MaterialExtensions.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using OMI.Formats.Material;
|
||||
|
||||
namespace PckStudio.Extensions
|
||||
{
|
||||
internal static class MaterialExtensions
|
||||
{
|
||||
public static bool HasInvalidEntries(this MaterialContainer materials)
|
||||
{
|
||||
return materials.Any(mat => !MaterialContainer.SupportedEntities.Contains(mat.Name) || !MaterialContainer.ValidMaterialTypes.Contains(mat.Type));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -138,6 +138,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="Extensions\BoundingBoxExtensions.cs" />
|
||||
<Compile Include="Extensions\MaterialContainerExtensions.cs" />
|
||||
<Compile Include="Extensions\MaterialExtensions.cs" />
|
||||
<Compile Include="Extensions\PictureBoxExtensions.cs" />
|
||||
<Compile Include="Extensions\TreeViewExtensions.cs" />
|
||||
<Compile Include="Forms\Additional-Popups\FilterPrompt.cs">
|
||||
|
||||
2
Vendor/OMI-Lib
vendored
2
Vendor/OMI-Lib
vendored
Submodule Vendor/OMI-Lib updated: a41f2eecc5...28ffb2e05f
Reference in New Issue
Block a user