WeaponSprite struct
#include <Jazz2/WeaponDefinition.h>
Sprite of a custom weapon.
Either an animation of the game, or an image the level has (see WeaponsDescription::
Public functions
- auto IsEmpty() const -> bool
- Returns
trueif 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.