GemBarrel class
#include <Jazz2/Actors/Solid/GemBarrel.h>
Gem barrel.
A wooden barrel that shatters when hit by a shot, TNT or a charged player, scattering a burst of coloured gems (red, green, blue and purple) for the player to collect.
Base classes
- class GenericContainer
- Base class of an item container.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
- GemBarrel()
- Creates a new instance.
Public functions
- auto OnHandleCollision(ActorBase* other) -> bool override
- Called when the object collides with another object.
Protected functions
- auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
- Called when the object is created and activated.
- auto OnPerish(ActorBase* collider) -> bool override
- Called when the object has no health left and should perish.