Detail the unused parts of controlled.cpp defs

pull/3226/head
Alexei Dobrohotov 3 years ago
parent 068dee94df
commit 9d8f6064a1

@ -34,11 +34,12 @@ namespace Nif
mipmap = nif->getUInt(); mipmap = nif->getUInt();
alpha = 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)) 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)) 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) void NiSourceTexture::post(NIFFile *nif)
@ -99,22 +100,21 @@ namespace Nif
NiParticleModifier::read(nif); NiParticleModifier::read(nif);
mBounceFactor = nif->getFloat(); 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. // Unused in NifSkope. Need to figure out what these do.
/*bool spawnOnCollision = */nif->getBoolean(); /*bool mSpawnOnCollision = */nif->getBoolean();
/*bool dieOnCollision = */nif->getBoolean(); /*bool mDieOnCollision = */nif->getBoolean();
} }
} }
void NiPlanarCollider::read(NIFStream *nif) void NiPlanarCollider::read(NIFStream *nif)
{ {
NiParticleCollider::read(nif); NiParticleCollider::read(nif);
/* osg::Vec2f mExtents = */nif->getVector2();
/*unknown*/nif->getFloat(); /* osg::Vec3f mPosition = */nif->getVector3();
/* osg::Vec3f mXVector = */nif->getVector3();
for (int i=0;i<10;++i) /* osg::Vec3f mYVector = */nif->getVector3();
/*unknown*/nif->getFloat();
mPlaneNormal = nif->getVector3(); mPlaneNormal = nif->getVector3();
mPlaneDistance = nif->getFloat(); mPlaneDistance = nif->getFloat();
@ -124,12 +124,9 @@ namespace Nif
{ {
NiParticleModifier::read(nif); NiParticleModifier::read(nif);
/* /* bool mRandomInitialAxis = */nif->getChar();
byte (0 or 1) /* osg::Vec3f mInitialAxis = */nif->getVector3();
float (1) /* float mRotationSpeed = */nif->getFloat();
float*3
*/
nif->skip(17);
} }
void NiSphericalCollider::read(NIFStream* nif) void NiSphericalCollider::read(NIFStream* nif)

Loading…
Cancel
Save