Example #1
0
    public static void UseCollectible(EntityState state, CollectibleInstances collectibleName)
    {
        Collectible thisEvent = null;

        if (collectibleDictionary.TryGetValue(collectibleName, out thisEvent))
        {
            thisEvent.Consume(state);
        }
    }
Example #2
0
    public static bool StateIsHolder(EntityState state, CollectibleInstances collectibleName)
    {
        Collectible thisEvent = null;
        bool        val       = false;

        if (collectibleDictionary.TryGetValue(collectibleName, out thisEvent))
        {
            val = thisEvent.HolderTest(state);
        }
        return(val);
    }
Example #3
0
    public static int GetHeapCount(EntityState state, CollectibleInstances collectibleName)
    {
        Collectible thisEvent = null;
        int         val       = 0;

        if (collectibleDictionary.TryGetValue(collectibleName, out thisEvent))
        {
            val = thisEvent.HeapCount(state);
        }
        return(val);
    }
Example #4
0
    public static EntityState[] AccessHolders(CollectibleInstances collectibleName)
    {
        Collectible thisEvent = null;

        EntityState[] holders = null;
        if (collectibleDictionary.TryGetValue(collectibleName, out thisEvent))
        {
            holders = thisEvent.Holders();
        }
        return(holders);
    }