FoodCollectible class
Food (collectible).
The assorted food and drink items scattered throughout JJ2 levels (fruit, sweets, fast food, sodas, etc.). Each item awards a small amount of points and counts toward the player's food tally; eating enough food triggers the Sugar Rush power-up.
Base classes
- class CollectibleBase
- Base class of a collectible object.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
- FoodCollectible()
- Creates a new instance.
Protected functions
- auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
- Called when the object is created and activated.
- void OnCollect(Player* player) override
- Called when the collectible is collected.