Server.Engines.Craft.CraftItem.IsQuantityType C# (CSharp) 메소드

IsQuantityType() 공개 메소드

public IsQuantityType ( Type types ) : bool
types System.Type
리턴 bool
        public bool IsQuantityType(Type[][] types)
        {
            for (int i = 0; i < types.Length; ++i)
            {
                Type[] check = types[i];

                for (int j = 0; j < check.Length; ++j)
                {
                    if (typeof(IHasQuantity).IsAssignableFrom(check[j]))
                        return true;
                }
            }

            return false;
        }