wavelength 1.0.0
Loading...
Searching...
No Matches
setanimaction.h
Go to the documentation of this file.
1#pragma once
2
4#include "rnd/rndanimatable.h"
5#include "script/dataarray.h"
6
15public:
22 ~SetAnimAction() override = default;
23
33 explicit SetAnimAction(DataArray *pAction);
34
43 void Exec() override;
44
45private:
46 // The values the node set.
47 enum Flag {
48 kFlagScale = 1,
49 kFlagOffset = 2,
50 kFlagMin = 4,
51 kFlagMax = 8,
52 };
53
54 // Warn unless the first filter of mAnim is of a kind.
55 void CheckFirstFilter(DataArray *pAction, int nType, const char *pszType);
56
57 int mFlags;
58 RndAnimatable *mAnim;
59 float mScale;
60 float mOffset;
61 float mMin;
62 float mMax;
63};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
void Exec() override
Write the values the node set into the first filter.
SetAnimAction(DataArray *pAction)
Read the action.
~SetAnimAction() override=default
Destroy the object.
Something a trigger does when its conditions hold.
Definition triggeraction.h:15