public static void UseCollectible(EntityState state, CollectibleInstances collectibleName) { Collectible thisEvent = null; if (collectibleDictionary.TryGetValue(collectibleName, out thisEvent)) { thisEvent.Consume(state); } }
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); }
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); }
public static EntityState[] AccessHolders(CollectibleInstances collectibleName) { Collectible thisEvent = null; EntityState[] holders = null; if (collectibleDictionary.TryGetValue(collectibleName, out thisEvent)) { holders = thisEvent.Holders(); } return(holders); }