2010-01-04 18:35:11 +00:00
|
|
|
/*
|
|
|
|
OpenMW - The completely unofficial reimplementation of Morrowind
|
|
|
|
Copyright (C) 2008-2010 Nicolay Korslund
|
|
|
|
Email: < korslund@gmail.com >
|
2018-03-08 20:23:24 +00:00
|
|
|
WWW: https://openmw.org/
|
2010-01-04 18:35:11 +00:00
|
|
|
|
|
|
|
This file (record.h) is part of the OpenMW package.
|
|
|
|
|
|
|
|
OpenMW is distributed as free software: you can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License
|
|
|
|
version 3, as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
version 3 along with this program. If not, see
|
2018-03-08 20:23:24 +00:00
|
|
|
https://www.gnu.org/licenses/ .
|
2010-01-04 18:35:11 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2013-02-24 21:51:56 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_NIF_RECORD_HPP
|
|
|
|
#define OPENMW_COMPONENTS_NIF_RECORD_HPP
|
2010-01-04 18:35:11 +00:00
|
|
|
|
2012-07-12 19:01:11 +00:00
|
|
|
#include <string>
|
2011-06-19 16:14:03 +00:00
|
|
|
|
2010-01-06 11:28:37 +00:00
|
|
|
namespace Nif
|
|
|
|
{
|
|
|
|
|
2022-09-17 17:24:42 +00:00
|
|
|
class Reader;
|
2013-01-05 21:03:05 +00:00
|
|
|
class NIFStream;
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2010-01-13 13:37:42 +00:00
|
|
|
enum RecordType
|
|
|
|
{
|
2010-06-12 07:48:58 +00:00
|
|
|
RC_MISSING = 0,
|
2013-04-28 18:12:55 +00:00
|
|
|
RC_AvoidNode,
|
2023-09-25 11:21:15 +00:00
|
|
|
RC_bhkAabbPhantom,
|
2023-09-21 19:59:55 +00:00
|
|
|
RC_bhkBallAndSocketConstraint,
|
2023-09-23 10:52:37 +00:00
|
|
|
RC_bhkBallSocketConstraintChain,
|
2023-09-20 02:37:52 +00:00
|
|
|
RC_bhkBlendCollisionObject,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkBlendController,
|
|
|
|
RC_bhkBoxShape,
|
2023-09-23 09:31:25 +00:00
|
|
|
RC_bhkBreakableConstraint,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkCapsuleShape,
|
2023-09-20 01:08:11 +00:00
|
|
|
RC_bhkCylinderShape,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkCollisionObject,
|
|
|
|
RC_bhkCompressedMeshShape,
|
|
|
|
RC_bhkCompressedMeshShapeData,
|
2023-09-20 02:57:14 +00:00
|
|
|
RC_bhkConvexListShape,
|
|
|
|
RC_bhkConvexSweepShape,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkConvexTransformShape,
|
|
|
|
RC_bhkConvexVerticesShape,
|
|
|
|
RC_bhkHingeConstraint,
|
|
|
|
RC_bhkLimitedHingeConstraint,
|
2023-09-25 11:36:54 +00:00
|
|
|
RC_bhkLiquidAction,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkListShape,
|
2023-09-23 09:31:25 +00:00
|
|
|
RC_bhkMalleableConstraint,
|
2023-09-25 11:00:44 +00:00
|
|
|
RC_bhkMeshShape,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkMoppBvTreeShape,
|
2023-09-23 12:42:10 +00:00
|
|
|
RC_bhkMultiSphereShape,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkNiTriStripsShape,
|
2023-09-25 11:36:54 +00:00
|
|
|
RC_bhkOrientHingedBodyAction,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkPackedNiTriStripsShape,
|
2023-09-23 12:42:10 +00:00
|
|
|
RC_bhkPlaneShape,
|
2023-09-20 05:11:57 +00:00
|
|
|
RC_bhkPhysicsSystem,
|
2023-09-23 09:31:25 +00:00
|
|
|
RC_bhkPrismaticConstraint,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkRagdollConstraint,
|
2023-09-20 05:11:57 +00:00
|
|
|
RC_bhkRagdollSystem,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_bhkRigidBody,
|
|
|
|
RC_bhkRigidBodyT,
|
|
|
|
RC_bhkSimpleShapePhantom,
|
|
|
|
RC_bhkSphereShape,
|
2023-09-21 19:59:55 +00:00
|
|
|
RC_bhkStiffSpringConstraint,
|
2024-05-12 22:12:09 +00:00
|
|
|
RC_BSAnimNote,
|
|
|
|
RC_BSAnimNotes,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSBehaviorGraphExtraData,
|
|
|
|
RC_BSBound,
|
2023-09-19 21:59:23 +00:00
|
|
|
RC_BSBoneLODExtraData,
|
|
|
|
RC_BSClothExtraData,
|
2023-11-08 09:33:26 +00:00
|
|
|
RC_BSCollisionQueryProxyExtraData,
|
2023-09-27 09:54:38 +00:00
|
|
|
RC_BSConnectPointChildren,
|
|
|
|
RC_BSConnectPointParents,
|
2023-09-19 21:59:23 +00:00
|
|
|
RC_BSDecalPlacementVectorExtraData,
|
2023-09-20 00:27:44 +00:00
|
|
|
RC_BSDistantTreeShaderProperty,
|
2023-09-19 22:54:26 +00:00
|
|
|
RC_BSDynamicTriShape,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSDismemberSkinInstance,
|
2023-09-19 21:59:23 +00:00
|
|
|
RC_BSDistantObjectExtraData,
|
|
|
|
RC_BSDistantObjectLargeRefExtraData,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSEffectShaderProperty,
|
|
|
|
RC_BSEffectShaderPropertyColorController,
|
|
|
|
RC_BSEffectShaderPropertyFloatController,
|
2023-09-19 21:59:23 +00:00
|
|
|
RC_BSExtraData,
|
2023-09-27 09:54:38 +00:00
|
|
|
RC_BSEyeCenterExtraData,
|
2023-09-20 00:57:44 +00:00
|
|
|
RC_BSFrustumFOVController,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSFurnitureMarker,
|
|
|
|
RC_BSInvMarker,
|
2023-09-20 00:57:44 +00:00
|
|
|
RC_BSKeyframeController,
|
2023-09-20 05:53:35 +00:00
|
|
|
RC_BSLagBoneController,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSLightingShaderProperty,
|
|
|
|
RC_BSLightingShaderPropertyColorController,
|
|
|
|
RC_BSLightingShaderPropertyFloatController,
|
2023-10-20 14:09:42 +00:00
|
|
|
RC_BSLightingShaderPropertyUShortController,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSLODTriShape,
|
|
|
|
RC_BSMaterialEmittanceMultController,
|
2023-09-19 22:54:26 +00:00
|
|
|
RC_BSMeshLODTriShape,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSMultiBound,
|
2023-09-20 00:42:59 +00:00
|
|
|
RC_BSMultiBoundAABB,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSMultiBoundOBB,
|
|
|
|
RC_BSMultiBoundSphere,
|
2023-09-20 02:26:41 +00:00
|
|
|
RC_BSNiAlphaPropertyTestRefController,
|
2023-09-20 01:57:10 +00:00
|
|
|
RC_BSPackedAdditionalGeometryData,
|
2023-10-20 14:39:58 +00:00
|
|
|
RC_BSPackedCombinedSharedGeomDataExtra,
|
2023-09-23 07:41:24 +00:00
|
|
|
RC_BSParentVelocityModifier,
|
2023-09-27 09:54:38 +00:00
|
|
|
RC_BSPositionData,
|
2023-09-23 10:52:37 +00:00
|
|
|
RC_BSProceduralLightningController,
|
2023-09-22 08:32:28 +00:00
|
|
|
RC_BSPSysArrayEmitter,
|
2023-09-23 11:52:48 +00:00
|
|
|
RC_BSPSysHavokUpdateModifier,
|
2023-09-22 01:11:32 +00:00
|
|
|
RC_BSPSysInheritVelocityModifier,
|
2023-09-22 00:04:36 +00:00
|
|
|
RC_BSPSysLODModifier,
|
2023-09-23 08:27:18 +00:00
|
|
|
RC_BSPSysMultiTargetEmitterCtlr,
|
2023-09-22 02:01:18 +00:00
|
|
|
RC_BSPSysRecycleBoundModifier,
|
2023-09-22 01:11:32 +00:00
|
|
|
RC_BSPSysScaleModifier,
|
|
|
|
RC_BSPSysSimpleColorModifier,
|
2023-09-22 02:01:18 +00:00
|
|
|
RC_BSPSysStripUpdateModifier,
|
|
|
|
RC_BSPSysSubTexModifier,
|
2023-09-21 23:19:32 +00:00
|
|
|
RC_BSStripParticleSystem,
|
|
|
|
RC_BSStripPSysData,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSRefractionFirePeriodController,
|
|
|
|
RC_BSRefractionStrengthController,
|
2024-05-12 21:49:10 +00:00
|
|
|
RC_BSRotAccumTransfInterpolator,
|
2023-09-25 11:47:37 +00:00
|
|
|
RC_BSSegmentedTriShape,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSShaderNoLightingProperty,
|
|
|
|
RC_BSShaderPPLightingProperty,
|
|
|
|
RC_BSShaderProperty,
|
|
|
|
RC_BSShaderTextureSet,
|
2023-09-27 09:17:44 +00:00
|
|
|
RC_BSSkinBoneData,
|
|
|
|
RC_BSSkinInstance,
|
2023-09-21 21:18:35 +00:00
|
|
|
RC_BSSkyShaderProperty,
|
2023-10-20 13:29:45 +00:00
|
|
|
RC_BSSubIndexTriShape,
|
2024-05-12 22:20:23 +00:00
|
|
|
RC_BSTreadTransfInterpolator,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSTriShape,
|
2023-09-19 21:59:23 +00:00
|
|
|
RC_BSWArray,
|
2023-09-21 21:18:35 +00:00
|
|
|
RC_BSWaterShaderProperty,
|
2023-09-22 02:28:18 +00:00
|
|
|
RC_BSWindModifier,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_BSXFlags,
|
2023-09-20 00:27:44 +00:00
|
|
|
RC_DistantLODShaderProperty,
|
|
|
|
RC_HairShaderProperty,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_hkPackedNiTriStripsData,
|
2023-09-20 01:57:10 +00:00
|
|
|
RC_NiAdditionalGeometryData,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiAlphaAccumulator,
|
|
|
|
RC_NiAlphaController,
|
|
|
|
RC_NiAlphaProperty,
|
|
|
|
RC_NiBillboardNode,
|
|
|
|
RC_NiBinaryExtraData,
|
|
|
|
RC_NiBlendBoolInterpolator,
|
|
|
|
RC_NiBlendFloatInterpolator,
|
|
|
|
RC_NiBlendPoint3Interpolator,
|
|
|
|
RC_NiBlendTransformInterpolator,
|
2023-09-23 08:27:18 +00:00
|
|
|
RC_NiBoneLODController,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiBoolData,
|
|
|
|
RC_NiBooleanExtraData,
|
|
|
|
RC_NiBoolInterpolator,
|
|
|
|
RC_NiBoolTimelineInterpolator,
|
|
|
|
RC_NiBSAnimationNode,
|
|
|
|
RC_NiBSPArrayController,
|
2013-04-14 19:52:20 +00:00
|
|
|
RC_NiBSParticleNode,
|
2024-05-12 20:44:23 +00:00
|
|
|
RC_NiBSplineData,
|
|
|
|
RC_NiBSplineBasisData,
|
2024-05-12 21:36:10 +00:00
|
|
|
RC_NiBSplineCompFloatInterpolator,
|
|
|
|
RC_NiBSplineCompPoint3Interpolator,
|
|
|
|
RC_NiBSplineCompTransformInterpolator,
|
2024-05-12 21:20:32 +00:00
|
|
|
RC_NiBSplineTransformInterpolator,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiCamera,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiClusterAccumulator,
|
|
|
|
RC_NiCollisionObject,
|
|
|
|
RC_NiCollisionSwitch,
|
|
|
|
RC_NiColorData,
|
|
|
|
RC_NiColorExtraData,
|
2023-09-21 11:59:14 +00:00
|
|
|
RC_NiColorExtraDataController,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiColorInterpolator,
|
|
|
|
RC_NiControllerManager,
|
|
|
|
RC_NiControllerSequence,
|
|
|
|
RC_NiDefaultAVObjectPalette,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiDitherProperty,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiExtraData,
|
|
|
|
RC_NiFlipController,
|
|
|
|
RC_NiFloatData,
|
|
|
|
RC_NiFloatExtraData,
|
2023-09-21 11:59:14 +00:00
|
|
|
RC_NiFloatExtraDataController,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiFloatInterpolator,
|
|
|
|
RC_NiFloatsExtraData,
|
2023-09-21 11:59:14 +00:00
|
|
|
RC_NiFloatsExtraDataController,
|
|
|
|
RC_NiFloatsExtraDataPoint3Controller,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiFltAnimationNode,
|
|
|
|
RC_NiFogProperty,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiGeomMorpherController,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiGravity,
|
|
|
|
RC_NiIntegerExtraData,
|
|
|
|
RC_NiIntegersExtraData,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiKeyframeController,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiKeyframeData,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiLight,
|
2023-09-21 12:42:13 +00:00
|
|
|
RC_NiLightColorController,
|
2023-09-20 03:12:56 +00:00
|
|
|
RC_NiLightDimmerController,
|
2023-09-27 09:30:47 +00:00
|
|
|
RC_NiLightRadiusController,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiLines,
|
|
|
|
RC_NiLinesData,
|
|
|
|
RC_NiLODNode,
|
|
|
|
RC_NiLookAtController,
|
2023-09-23 07:41:24 +00:00
|
|
|
RC_NiLookAtInterpolator,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiMaterialColorController,
|
|
|
|
RC_NiMaterialProperty,
|
2023-09-23 11:52:48 +00:00
|
|
|
RC_NiMeshPSysData,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiMorphData,
|
|
|
|
RC_NiMultiTargetTransformController,
|
|
|
|
RC_NiNode,
|
|
|
|
RC_NiPalette,
|
2023-10-22 07:12:31 +00:00
|
|
|
RC_NiParticleBomb,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiParticleColorModifier,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiParticleGrowFade,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiParticleRotation,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiParticles,
|
|
|
|
RC_NiParticlesData,
|
2023-09-21 22:52:30 +00:00
|
|
|
RC_NiParticleSystem,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiParticleSystemController,
|
|
|
|
RC_NiPathController,
|
2023-09-21 12:42:13 +00:00
|
|
|
RC_NiPathInterpolator,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiPixelData,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiPlanarCollider,
|
|
|
|
RC_NiPoint3Interpolator,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiPosData,
|
2023-09-21 23:54:03 +00:00
|
|
|
RC_NiPSysAgeDeathModifier,
|
2023-09-21 10:09:33 +00:00
|
|
|
RC_NiPSysAirFieldAirFrictionCtlr,
|
|
|
|
RC_NiPSysAirFieldInheritVelocityCtlr,
|
|
|
|
RC_NiPSysAirFieldSpreadCtlr,
|
2023-09-22 02:28:18 +00:00
|
|
|
RC_NiPSysBombModifier,
|
2023-09-22 01:11:32 +00:00
|
|
|
RC_NiPSysBoundUpdateModifier,
|
2023-09-22 02:28:18 +00:00
|
|
|
RC_NiPSysBoxEmitter,
|
2023-09-22 02:01:18 +00:00
|
|
|
RC_NiPSysColliderManager,
|
2023-09-22 08:32:28 +00:00
|
|
|
RC_NiPSysColorModifier,
|
2023-09-22 00:26:01 +00:00
|
|
|
RC_NiPSysCylinderEmitter,
|
2023-09-21 09:07:48 +00:00
|
|
|
RC_NiPSysData,
|
2023-09-22 01:42:46 +00:00
|
|
|
RC_NiPSysDragModifier,
|
2023-09-21 10:09:33 +00:00
|
|
|
RC_NiPSysEmitterCtlr,
|
|
|
|
RC_NiPSysEmitterCtlrData,
|
|
|
|
RC_NiPSysEmitterDeclinationCtlr,
|
|
|
|
RC_NiPSysEmitterDeclinationVarCtlr,
|
|
|
|
RC_NiPSysEmitterInitialRadiusCtlr,
|
|
|
|
RC_NiPSysEmitterLifeSpanCtlr,
|
|
|
|
RC_NiPSysEmitterPlanarAngleCtlr,
|
|
|
|
RC_NiPSysEmitterPlanarAngleVarCtlr,
|
|
|
|
RC_NiPSysEmitterSpeedCtlr,
|
|
|
|
RC_NiPSysFieldAttenuationCtlr,
|
|
|
|
RC_NiPSysFieldMagnitudeCtlr,
|
|
|
|
RC_NiPSysFieldMaxDistanceCtlr,
|
2023-09-22 01:42:46 +00:00
|
|
|
RC_NiPSysGravityModifier,
|
2023-09-21 10:09:33 +00:00
|
|
|
RC_NiPSysGravityStrengthCtlr,
|
2023-09-22 08:32:28 +00:00
|
|
|
RC_NiPSysGrowFadeModifier,
|
2023-09-21 10:09:33 +00:00
|
|
|
RC_NiPSysInitialRotSpeedCtlr,
|
|
|
|
RC_NiPSysInitialRotSpeedVarCtlr,
|
|
|
|
RC_NiPSysInitialRotAngleCtlr,
|
|
|
|
RC_NiPSysInitialRotAngleVarCtlr,
|
2023-09-22 01:42:46 +00:00
|
|
|
RC_NiPSysMeshEmitter,
|
2023-09-23 11:52:48 +00:00
|
|
|
RC_NiPSysMeshUpdateModifier,
|
2023-09-21 10:09:33 +00:00
|
|
|
RC_NiPSysModifierActiveCtlr,
|
2023-09-22 02:01:18 +00:00
|
|
|
RC_NiPSysPlanarCollider,
|
2023-09-22 00:26:01 +00:00
|
|
|
RC_NiPSysPositionModifier,
|
2023-09-22 01:42:46 +00:00
|
|
|
RC_NiPSysRotationModifier,
|
2023-09-22 00:26:01 +00:00
|
|
|
RC_NiPSysResetOnLoopCtlr,
|
2023-09-21 23:54:03 +00:00
|
|
|
RC_NiPSysSpawnModifier,
|
2023-09-22 02:01:18 +00:00
|
|
|
RC_NiPSysSphericalCollider,
|
2023-09-22 00:26:01 +00:00
|
|
|
RC_NiPSysSphereEmitter,
|
2023-09-21 11:01:43 +00:00
|
|
|
RC_NiPSysUpdateCtlr,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiRollController,
|
|
|
|
RC_NiSequence,
|
2010-01-13 13:37:42 +00:00
|
|
|
RC_NiSequenceStreamHelper,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiShadeProperty,
|
|
|
|
RC_NiSkinData,
|
2011-01-13 16:51:50 +00:00
|
|
|
RC_NiSkinInstance,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiSkinPartition,
|
|
|
|
RC_NiSortAdjustNode,
|
|
|
|
RC_NiSourceTexture,
|
|
|
|
RC_NiSpecularProperty,
|
2018-04-29 05:24:13 +00:00
|
|
|
RC_NiSphericalCollider,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiStencilProperty,
|
|
|
|
RC_NiStringExtraData,
|
2023-09-19 21:59:23 +00:00
|
|
|
RC_NiStringsExtraData,
|
2020-11-07 00:40:21 +00:00
|
|
|
RC_NiStringPalette,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiSwitchNode,
|
|
|
|
RC_NiTextKeyExtraData,
|
|
|
|
RC_NiTextureEffect,
|
|
|
|
RC_NiTextureTransformController,
|
|
|
|
RC_NiTexturingProperty,
|
2020-12-12 23:35:57 +00:00
|
|
|
RC_NiTransformInterpolator,
|
2023-08-30 16:11:00 +00:00
|
|
|
RC_NiTriShape,
|
|
|
|
RC_NiTriShapeData,
|
|
|
|
RC_NiTriStrips,
|
|
|
|
RC_NiTriStripsData,
|
|
|
|
RC_NiUVController,
|
|
|
|
RC_NiUVData,
|
|
|
|
RC_NiVectorExtraData,
|
|
|
|
RC_NiVertexColorProperty,
|
|
|
|
RC_NiVertWeightsExtraData,
|
|
|
|
RC_NiVisController,
|
|
|
|
RC_NiVisData,
|
|
|
|
RC_NiWireframeProperty,
|
|
|
|
RC_NiZBufferProperty,
|
|
|
|
RC_RootCollisionNode,
|
2023-09-20 00:27:44 +00:00
|
|
|
RC_SkyShaderProperty,
|
|
|
|
RC_TallGrassShaderProperty,
|
|
|
|
RC_TileShaderProperty,
|
|
|
|
RC_VolumetricFogShaderProperty,
|
|
|
|
RC_WaterShaderProperty,
|
2010-01-13 13:37:42 +00:00
|
|
|
};
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2010-01-06 11:28:37 +00:00
|
|
|
/// Base class for all records
|
|
|
|
struct Record
|
2010-01-04 18:35:11 +00:00
|
|
|
{
|
2012-07-03 04:41:21 +00:00
|
|
|
// Record type and type name
|
2022-02-11 20:52:00 +00:00
|
|
|
RecordType recType{ RC_MISSING };
|
2012-07-10 03:53:54 +00:00
|
|
|
std::string recName;
|
2020-10-25 23:36:32 +00:00
|
|
|
unsigned int recIndex{ ~0u };
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2020-10-25 23:36:32 +00:00
|
|
|
Record() = default;
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2012-07-03 04:41:21 +00:00
|
|
|
/// Parses the record from file
|
2013-01-05 21:03:05 +00:00
|
|
|
virtual void read(NIFStream* nif) = 0;
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2012-07-03 04:41:21 +00:00
|
|
|
/// Does post-processing, after the entire tree is loaded
|
2022-09-17 17:24:42 +00:00
|
|
|
virtual void post(Reader& nif) {}
|
2022-09-22 18:26:05 +00:00
|
|
|
|
2012-03-15 15:01:41 +00:00
|
|
|
virtual ~Record() {}
|
2010-01-04 18:35:11 +00:00
|
|
|
};
|
|
|
|
|
2010-01-06 11:28:37 +00:00
|
|
|
} // Namespace
|
2010-01-04 18:35:11 +00:00
|
|
|
#endif
|