﻿using JLGames.RocketDriver.Samples.ServiceDemo.Cfg.CfgConst;

namespace JLGames.RocketDriver.Samples.ServiceDemo.Service.Material
{
    public class GameMaterialTypes
    {
        private static readonly int[] m_All =
        {
            ConstMaterialType.Resource,
        };

        private static readonly int[] m_UniqueAll =
        {
        };

        public static int[] All => (int[]) m_All.Clone();

        public static int[] UniqueAll => (int[]) m_UniqueAll.Clone();

        public static bool CheckExist(int type)
        {
            foreach (var t in m_All)
            {
                if (t == type) return true;
            }

            return false;
        }

        public static bool CheckIsUnique(int type)
        {
            foreach (var t in m_UniqueAll)
            {
                if (t == type) return true;
            }

            return false;
        }
    }
}