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