GameHandler.HasItemType C# (CSharp) Méthode

HasItemType() public static méthode

public static HasItemType ( int id ) : bool
id int
Résultat bool
    public static bool HasItemType(int id)
    {
        bool has = false;
        foreach(DictionaryEntry entry in GameHandler.Instance().items)
        {
            if(DataHolder.Item((int)entry.Key).itemType == id)
            {
                has = true;
                break;
            }
        }
        return has;
    }
GameHandler