mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 11:41:33 +00:00
Add NiFloatInterpController abstraction
This commit is contained in:
parent
c9e3db40a1
commit
e7c37f21b7
2 changed files with 5 additions and 24 deletions
|
@ -170,25 +170,13 @@ namespace Nif
|
||||||
data.post(nif);
|
data.post(nif);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NiAlphaController::read(NIFStream *nif)
|
void NiFloatInterpController::read(NIFStream *nif)
|
||||||
{
|
{
|
||||||
Controller::read(nif);
|
Controller::read(nif);
|
||||||
data.read(nif);
|
data.read(nif);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NiAlphaController::post(NIFFile *nif)
|
void NiFloatInterpController::post(NIFFile *nif)
|
||||||
{
|
|
||||||
Controller::post(nif);
|
|
||||||
data.post(nif);
|
|
||||||
}
|
|
||||||
|
|
||||||
void NiRollController::read(NIFStream *nif)
|
|
||||||
{
|
|
||||||
Controller::read(nif);
|
|
||||||
data.read(nif);
|
|
||||||
}
|
|
||||||
|
|
||||||
void NiRollController::post(NIFFile *nif)
|
|
||||||
{
|
{
|
||||||
Controller::post(nif);
|
Controller::post(nif);
|
||||||
data.post(nif);
|
data.post(nif);
|
||||||
|
|
|
@ -143,23 +143,16 @@ public:
|
||||||
void post(NIFFile *nif);
|
void post(NIFFile *nif);
|
||||||
};
|
};
|
||||||
|
|
||||||
class NiAlphaController : public Controller
|
struct NiFloatInterpController : public Controller
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
NiFloatDataPtr data;
|
NiFloatDataPtr data;
|
||||||
|
|
||||||
void read(NIFStream *nif);
|
void read(NIFStream *nif);
|
||||||
void post(NIFFile *nif);
|
void post(NIFFile *nif);
|
||||||
};
|
};
|
||||||
|
|
||||||
class NiRollController : public Controller
|
class NiAlphaController : public NiFloatInterpController { };
|
||||||
{
|
class NiRollController : public NiFloatInterpController { };
|
||||||
public:
|
|
||||||
NiFloatDataPtr data;
|
|
||||||
|
|
||||||
void read(NIFStream *nif);
|
|
||||||
void post(NIFFile *nif);
|
|
||||||
};
|
|
||||||
|
|
||||||
class NiGeomMorpherController : public Controller
|
class NiGeomMorpherController : public Controller
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue