2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-02-05 08:34:14 +00:00
|
|
|
|
|
|
|
#include <memory>
|
2019-09-23 19:00:23 +00:00
|
|
|
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include "Runtime/IOStreams.hpp"
|
|
|
|
|
|
|
|
#include <zeus/CColor.hpp>
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2016-02-05 08:34:14 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-02-05 08:34:14 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class IElement {
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual ~IElement() = default;
|
2016-02-05 08:34:14 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CRealElement : public IElement {
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual bool GetValue(int frame, float& valOut) const = 0;
|
|
|
|
virtual bool IsConstant() const { return false; }
|
2016-02-05 08:34:14 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CIntElement : public IElement {
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual bool GetValue(int frame, int& valOut) const = 0;
|
|
|
|
virtual int GetMaxValue() const = 0;
|
2016-02-05 08:34:14 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CVectorElement : public IElement {
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual bool GetValue(int frame, zeus::CVector3f& valOut) const = 0;
|
|
|
|
virtual bool IsFastConstant() const { return false; }
|
2016-02-05 08:34:14 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CModVectorElement : public IElement {
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual bool GetValue(int frame, zeus::CVector3f& pVel, zeus::CVector3f& pPos) const = 0;
|
2016-02-05 08:34:14 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CColorElement : public IElement {
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual bool GetValue(int frame, zeus::CColor& colorOut) const = 0;
|
2016-02-05 08:34:14 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CEmitterElement : public IElement {
|
2016-02-11 02:36:21 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual bool GetValue(int frame, zeus::CVector3f& pPos, zeus::CVector3f& pVel) const = 0;
|
2016-02-06 00:34:40 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|