mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
make CEnvelope::m_PointsAccess private
This commit is contained in:
parent
855ae8885c
commit
c2adfc5628
|
@ -31,7 +31,7 @@ const CEnvPointBezier *CEnvelope::CEnvelopePointAccess::GetBezier(int Index) con
|
||||||
}
|
}
|
||||||
|
|
||||||
CEnvelope::CEnvelope(EType Type) :
|
CEnvelope::CEnvelope(EType Type) :
|
||||||
m_PointsAccess(&m_vPoints), m_Type(Type) {}
|
m_Type(Type), m_PointsAccess(&m_vPoints) {}
|
||||||
|
|
||||||
CEnvelope::CEnvelope(int NumChannels) :
|
CEnvelope::CEnvelope(int NumChannels) :
|
||||||
m_PointsAccess(&m_vPoints)
|
m_PointsAccess(&m_vPoints)
|
||||||
|
|
|
@ -6,21 +6,8 @@
|
||||||
|
|
||||||
class CEnvelope
|
class CEnvelope
|
||||||
{
|
{
|
||||||
class CEnvelopePointAccess : public IEnvelopePointAccess
|
|
||||||
{
|
|
||||||
std::vector<CEnvPoint_runtime> *m_pvPoints;
|
|
||||||
|
|
||||||
public:
|
|
||||||
CEnvelopePointAccess(std::vector<CEnvPoint_runtime> *pvPoints);
|
|
||||||
|
|
||||||
int NumPoints() const override;
|
|
||||||
const CEnvPoint *GetPoint(int Index) const override;
|
|
||||||
const CEnvPointBezier *GetBezier(int Index) const override;
|
|
||||||
};
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
std::vector<CEnvPoint_runtime> m_vPoints;
|
std::vector<CEnvPoint_runtime> m_vPoints;
|
||||||
CEnvelopePointAccess m_PointsAccess;
|
|
||||||
char m_aName[32] = "";
|
char m_aName[32] = "";
|
||||||
bool m_Synchronized = false;
|
bool m_Synchronized = false;
|
||||||
|
|
||||||
|
@ -43,6 +30,19 @@ private:
|
||||||
void Resort();
|
void Resort();
|
||||||
|
|
||||||
EType m_Type;
|
EType m_Type;
|
||||||
|
|
||||||
|
class CEnvelopePointAccess : public IEnvelopePointAccess
|
||||||
|
{
|
||||||
|
std::vector<CEnvPoint_runtime> *m_pvPoints;
|
||||||
|
|
||||||
|
public:
|
||||||
|
CEnvelopePointAccess(std::vector<CEnvPoint_runtime> *pvPoints);
|
||||||
|
|
||||||
|
int NumPoints() const override;
|
||||||
|
const CEnvPoint *GetPoint(int Index) const override;
|
||||||
|
const CEnvPointBezier *GetBezier(int Index) const override;
|
||||||
|
};
|
||||||
|
CEnvelopePointAccess m_PointsAccess;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue