wavelength 1.0.0
Loading...
Searching...
No Matches
setgeneratoraction.h
Go to the documentation of this file.
1#pragma once
2
4#include "math/vector2.h"
5#include "math/vector3.h"
6#include "rnd/rndgenerator.h"
7#include "rnd/rndtransanim.h"
8#include "script/dataarray.h"
9
17public:
24 ~SetGeneratorAction() override = default;
25
33 explicit SetGeneratorAction(DataArray *pAction);
34
43 void Exec() override;
44
45private:
46 // The values the node set.
47 enum Flag {
48 kFlagPath = 1,
49 kFlagRate = 2,
50 kFlagScale = 4,
51 kFlagPathVar = 8,
52 };
53
54 int mFlags;
55 RndGenerator *mGenerator;
56 RndTransAnim *mPath;
57 Vector2 mRate;
58 Vector2 mScale;
59 alignas(16) Vector3 mPathVar;
60};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Emitter of instances that each follow a path animation from the frame they are born at.
Definition rndgenerator.h:30
Animation of a transformable's local transform by rotation, translation, and scale keys.
Definition rndtransanim.h:20
~SetGeneratorAction() override=default
Destroy the object.
void Exec() override
Write the values the node set into the generator.
SetGeneratorAction(DataArray *pAction)
Read the action.
Something a trigger does when its conditions hold.
Definition triggeraction.h:15
Two-component vector, used for texture coordinates.
Definition vector2.h:12
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14