Leviathan  0.8.0.0
Leviathan game engine
Leviathan::SimpleAnimation Struct Reference

Contains an animation for Animated component. More...

#include <Components.h>

Public Member Functions

DLLEXPORT SimpleAnimation (const std::string &name)
 
DLLEXPORT SimpleAnimation (SimpleAnimation &&other)
 
DLLEXPORT SimpleAnimation (const SimpleAnimation &other)
 

Public Attributes

std::string Name
 
bool NameMarked = true
 
bool Loop = false
 If true the animation will automatically loop. More...
 
float SpeedFactor = 1
 Controls how fast the animation plays. More...
 
bool Paused = false
 If true then the animation will be paused. More...
 

Protected Attributes

bs::HAnimationClip _LoadedAnimation
 Loaded animation. More...
 

Friends

class AnimationSystem
 

Detailed Description

Contains an animation for Animated component.

Definition at line 256 of file Components.h.

Constructor & Destructor Documentation

◆ SimpleAnimation() [1/3]

DLLEXPORT Leviathan::SimpleAnimation::SimpleAnimation ( const std::string &  name)
inline

Definition at line 260 of file Components.h.

260 : Name(name) {}

◆ SimpleAnimation() [2/3]

DLLEXPORT Leviathan::SimpleAnimation::SimpleAnimation ( SimpleAnimation &&  other)
inline

Definition at line 262 of file Components.h.

262  :
263  Name(std::move(other.Name)), Loop(other.Loop), SpeedFactor(other.SpeedFactor),
264  Paused(other.Paused), _LoadedAnimation(std::move(other._LoadedAnimation))
265  {
266  Loop = other.Loop;
267  SpeedFactor = other.SpeedFactor;
268  Paused = other.Paused;
269  }
bs::HAnimationClip _LoadedAnimation
Loaded animation.
Definition: Components.h:291
bool Loop
If true the animation will automatically loop.
Definition: Components.h:281
bool Paused
If true then the animation will be paused.
Definition: Components.h:287
float SpeedFactor
Controls how fast the animation plays.
Definition: Components.h:284

◆ SimpleAnimation() [3/3]

DLLEXPORT Leviathan::SimpleAnimation::SimpleAnimation ( const SimpleAnimation other)
inline

Definition at line 271 of file Components.h.

271  :
272  Name(other.Name), Loop(other.Loop), SpeedFactor(other.SpeedFactor),
273  Paused(other.Paused), _LoadedAnimation(other._LoadedAnimation)
274  {}
bs::HAnimationClip _LoadedAnimation
Loaded animation.
Definition: Components.h:291
bool Loop
If true the animation will automatically loop.
Definition: Components.h:281
bool Paused
If true then the animation will be paused.
Definition: Components.h:287
float SpeedFactor
Controls how fast the animation plays.
Definition: Components.h:284

Friends And Related Function Documentation

◆ AnimationSystem

friend class AnimationSystem
friend

Definition at line 257 of file Components.h.

Member Data Documentation

◆ _LoadedAnimation

bs::HAnimationClip Leviathan::SimpleAnimation::_LoadedAnimation
protected

Loaded animation.

Definition at line 291 of file Components.h.

◆ Loop

bool Leviathan::SimpleAnimation::Loop = false

If true the animation will automatically loop.

Definition at line 281 of file Components.h.

◆ Name

std::string Leviathan::SimpleAnimation::Name
Note
Updating this only takes effect if NameMarked is set to true

Definition at line 277 of file Components.h.

◆ NameMarked

bool Leviathan::SimpleAnimation::NameMarked = true

Definition at line 278 of file Components.h.

◆ Paused

bool Leviathan::SimpleAnimation::Paused = false

If true then the animation will be paused.

Definition at line 287 of file Components.h.

◆ SpeedFactor

float Leviathan::SimpleAnimation::SpeedFactor = 1

Controls how fast the animation plays.

Definition at line 284 of file Components.h.


The documentation for this struct was generated from the following file: