3#include <GameEngine/GameEngineDLL.h>
5#include <Core/Curves/ColorGradientResource.h>
6#include <Core/Messages/SetColorMessage.h>
7#include <Core/World/Component.h>
8#include <Core/World/World.h>
9#include <GameEngine/Animation/PropertyAnimResource.h>
38 void SetColorGradientFile(
const char* szFile);
39 const char* GetColorGradientFile()
const;
50 bool GetApplyRecursive()
const;
51 void SetApplyRecursive(
bool value);
53 bool GetRandomStartOffset()
const;
54 void SetRandomStartOffset(
bool value);
Samples a color gradient and sends an plMsgSetColor to the object it is attached to.
Definition ColorAnimationComponent.h:18
plEnum< plPropertyAnimMode > m_AnimationMode
How the animation should be played and looped.
Definition ColorAnimationComponent.h:45
plEnum< plSetColorMode > m_SetColorMode
How the color should be applied to the target.
Definition ColorAnimationComponent.h:48
plTime m_Duration
How long it takes to sample the entire color gradient.
Definition ColorAnimationComponent.h:36
Base class of all component types.
Definition Component.h:25
virtual void SerializeComponent(plWorldWriter &inout_stream) const
Override this to save the current state of the component to the given stream.
Definition Component.cpp:54
virtual void OnSimulationStarted()
This method is called once for active components, at the start of the next world update,...
Definition Component.cpp:144
virtual void DeserializeComponent(plWorldReader &inout_stream)
Override this to load the current state of the component from the given stream.
Definition Component.cpp:58
Simple component manager implementation that calls an update method on all components every frame.
Definition ComponentManager.h:142
Reads a world description from a stream. Allows to instantiate that world multiple times in different...
Definition WorldReader.h:47
Stores an entire plWorld in a stream.
Definition WorldWriter.h:13
A custom enum implementation that allows to define the underlying storage type to control its memory ...
Definition Enum.h:37
The time class encapsulates a double value storing the time in seconds.
Definition Time.h:12