Jazz2::WeaponSprite struct

Sprite of a custom weapon.

Either an animation of the game, or an image the level has (see WeaponsDescription::Images). Empty means the sprite of the weapon of the game.

Public functions

auto IsEmpty() const -> bool
Returns true if it's the sprite of the weapon of the game.
auto operator==(const WeaponSprite& other) const -> bool
auto operator!=(const WeaponSprite& other) const -> bool

Public variables

String Metadata
Path of the metadata of the animation of the game, empty for none.
std::uint32_t AnimState
Animation state of the animation of the game.
std::int32_t Image
Index of an image of the level, -1 for none.