mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 09:45:36 +00:00
Detail the unused parts of controlled.cpp defs
This commit is contained in:
parent
068dee94df
commit
9d8f6064a1
1 changed files with 14 additions and 17 deletions
|
@ -34,11 +34,12 @@ namespace Nif
|
|||
mipmap = nif->getUInt();
|
||||
alpha = nif->getUInt();
|
||||
|
||||
nif->getChar(); // always 1
|
||||
// Renderer hints, typically of no use for us
|
||||
/* bool mIsStatic = */nif->getChar();
|
||||
if (nif->getVersion() >= NIFStream::generateVersion(10,1,0,103))
|
||||
nif->getBoolean(); // Direct rendering
|
||||
/* bool mDirectRendering = */nif->getBoolean();
|
||||
if (nif->getVersion() >= NIFStream::generateVersion(20,2,0,4))
|
||||
nif->getBoolean(); // NiPersistentSrcTextureRendererData is used instead of NiPixelData
|
||||
/* bool mPersistRenderData = */nif->getBoolean();
|
||||
}
|
||||
|
||||
void NiSourceTexture::post(NIFFile *nif)
|
||||
|
@ -99,22 +100,21 @@ namespace Nif
|
|||
NiParticleModifier::read(nif);
|
||||
|
||||
mBounceFactor = nif->getFloat();
|
||||
if (nif->getVersion() >= NIFStream::generateVersion(4,2,2,0))
|
||||
if (nif->getVersion() >= NIFStream::generateVersion(4,2,0,2))
|
||||
{
|
||||
// Unused in NifSkope. Need to figure out what these do.
|
||||
/*bool spawnOnCollision = */nif->getBoolean();
|
||||
/*bool dieOnCollision = */nif->getBoolean();
|
||||
/*bool mSpawnOnCollision = */nif->getBoolean();
|
||||
/*bool mDieOnCollision = */nif->getBoolean();
|
||||
}
|
||||
}
|
||||
|
||||
void NiPlanarCollider::read(NIFStream *nif)
|
||||
{
|
||||
NiParticleCollider::read(nif);
|
||||
|
||||
/*unknown*/nif->getFloat();
|
||||
|
||||
for (int i=0;i<10;++i)
|
||||
/*unknown*/nif->getFloat();
|
||||
/* osg::Vec2f mExtents = */nif->getVector2();
|
||||
/* osg::Vec3f mPosition = */nif->getVector3();
|
||||
/* osg::Vec3f mXVector = */nif->getVector3();
|
||||
/* osg::Vec3f mYVector = */nif->getVector3();
|
||||
|
||||
mPlaneNormal = nif->getVector3();
|
||||
mPlaneDistance = nif->getFloat();
|
||||
|
@ -124,12 +124,9 @@ namespace Nif
|
|||
{
|
||||
NiParticleModifier::read(nif);
|
||||
|
||||
/*
|
||||
byte (0 or 1)
|
||||
float (1)
|
||||
float*3
|
||||
*/
|
||||
nif->skip(17);
|
||||
/* bool mRandomInitialAxis = */nif->getChar();
|
||||
/* osg::Vec3f mInitialAxis = */nif->getVector3();
|
||||
/* float mRotationSpeed = */nif->getFloat();
|
||||
}
|
||||
|
||||
void NiSphericalCollider::read(NIFStream* nif)
|
||||
|
|
Loading…
Reference in a new issue