mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +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) :
|
||||
m_PointsAccess(&m_vPoints), m_Type(Type) {}
|
||||
m_Type(Type), m_PointsAccess(&m_vPoints) {}
|
||||
|
||||
CEnvelope::CEnvelope(int NumChannels) :
|
||||
m_PointsAccess(&m_vPoints)
|
||||
|
|
|
@ -6,21 +6,8 @@
|
|||
|
||||
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:
|
||||
std::vector<CEnvPoint_runtime> m_vPoints;
|
||||
CEnvelopePointAccess m_PointsAccess;
|
||||
char m_aName[32] = "";
|
||||
bool m_Synchronized = false;
|
||||
|
||||
|
@ -43,6 +30,19 @@ private:
|
|||
void Resort();
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue