mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-07 13:20:25 +00:00
Add NiFloatInterpController abstraction
This commit is contained in:
parent
c9e3db40a1
commit
e7c37f21b7
@ -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…
x
Reference in New Issue
Block a user