Etterna 0.74.4
Loading...
Searching...
No Matches
BGAnimationLayer.h
1#ifndef BGANIMATIONLAYER_H
2#define BGANIMATIONLAYER_H
3
4#include "Etterna/Actor/Base/ActorFrame.h"
5#include "Etterna/Models/Misc/GameConstantsAndTypes.h"
6
7class XNode;
8
11{
12 public:
14 ~BGAnimationLayer() override;
15
16 void LoadFromAniLayerFile(const std::string& sPath);
17 void LoadFromNode(const XNode* pNode) override;
18
19 void UpdateInternal(float fDeltaTime) override;
20
21 float GetMaxTweenTimeLeft() const;
22
23 protected:
24 std::vector<RageVector3> m_vParticleVelocity;
25
26 enum Type
27 {
28 TYPE_SPRITE,
29 TYPE_PARTICLES,
30 TYPE_TILES,
31 NUM_TYPES,
32 } m_Type;
33
34 // stretch stuff
35 float m_fTexCoordVelocityX;
36 float m_fTexCoordVelocityY;
37
38 // particles stuff
39 bool m_bParticlesBounce;
40
41 // tiles stuff
42 int m_iNumTilesWide;
43 int m_iNumTilesHigh;
44 float m_fTilesStartX;
45 float m_fTilesStartY;
46 float m_fTilesSpacingX;
47 float m_fTilesSpacingY;
48 float m_fTileVelocityX;
49 float m_fTileVelocityY;
50};
51
52#endif
A container for other Actors.
Definition ActorFrame.h:8
Layer elements used by BGAnimation.
Definition BGAnimationLayer.h:11
Definition XmlFile.h:95