Skip to content
Snippets Groups Projects
Commit ecf438e1 authored by Amorilia's avatar Amorilia
Browse files

Tabs instead of spaces.

parent 61b1b8c1
No related branches found
No related tags found
No related merge requests found
Showing with 524 additions and 524 deletions
......@@ -11,18 +11,18 @@ class NiAVObject;
* Used in NiDefaultAVObjectPalette.
*/
struct AVObject {
/*! Default Constructor */
AVObject();
/*! Default Destructor */
~AVObject();
/*!
* Object name.
*/
string name;
/*!
* Object reference.
*/
NiAVObject * object;
/*! Default Constructor */
AVObject();
/*! Default Destructor */
~AVObject();
/*!
* Object name.
*/
string name;
/*!
* Object reference.
*/
NiAVObject * object;
};
#endif
......@@ -12,18 +12,18 @@ class NiNode;
* hierarchy so ints are used to represent the indices.
*/
struct Bones {
/*! Default Constructor */
Bones();
/*! Default Destructor */
~Bones();
/*!
* The number of node bones referenced as influences.
*/
uint numBones;
/*!
* Block indicies of the bones.
*/
vector<NiNode * > bones;
/*! Default Constructor */
Bones();
/*! Default Destructor */
~Bones();
/*!
* The number of node bones referenced as influences.
*/
uint numBones;
/*!
* Block indicies of the bones.
*/
vector<NiNode * > bones;
};
#endif
......@@ -11,26 +11,26 @@ All rights reserved. Please see niflib.h for licence. */
* Bounding box.
*/
struct BoundingBox {
/*! Default Constructor */
BoundingBox();
/*! Default Destructor */
~BoundingBox();
/*!
* Usually 1.
*/
uint unknownInt;
/*!
* Translation vector.
*/
Vector3 translation;
/*!
* Rotation matrix.
*/
Matrix33 rotation;
/*!
* Radius, per direction.
*/
Vector3 radius;
/*! Default Constructor */
BoundingBox();
/*! Default Destructor */
~BoundingBox();
/*!
* Usually 1.
*/
uint unknownInt;
/*!
* Translation vector.
*/
Vector3 translation;
/*!
* Rotation matrix.
*/
Matrix33 rotation;
/*!
* Radius, per direction.
*/
Vector3 radius;
};
#endif
......@@ -11,22 +11,22 @@ All rights reserved. Please see niflib.h for licence. */
* An array of bytes.
*/
struct ByteArray {
/*! Default Constructor */
ByteArray();
/*! Default Destructor */
~ByteArray();
/*!
* The number of bytes in this array
*/
uint dataSize;
/*!
* Unknown.
*/
uint unknownInt;
/*!
* The bytes which make up the array
*/
vector<byte > data;
/*! Default Constructor */
ByteArray();
/*! Default Destructor */
~ByteArray();
/*!
* The number of bytes in this array
*/
uint dataSize;
/*!
* Unknown.
*/
uint unknownInt;
/*!
* The bytes which make up the array
*/
vector<byte > data;
};
#endif
......@@ -17,97 +17,97 @@ All rights reserved. Please see niflib.h for licence. */
* this controllable block, via links.
*/
struct ControllerLink {
/*! Default Constructor */
ControllerLink();
/*! Default Destructor */
~ControllerLink();
/*!
* Name of a controllable block in another NIF file.
*/
string name;
/*!
* Link to an interpolator.
*/
Ref<NiInterpolator > interpolator;
/*!
* Unknown link. Usually -1.
*/
Ref<NiObject > unknownLink1;
/*!
* Unknown.
*/
Ref<NiObject > unknownLink2;
/*!
* Unknown.
*/
ushort unknownShort0;
/*!
* Idle animations tend to have low values for this, and blocks that have
* high values tend to correspond with the important parts of the
* animation. WARNING: BREAKS CIV4 NIF FILES! Only observed in Oblivion
* NIF files so far.
*/
byte priority_;
/*!
* Refers to the NiStringPalette which contains the name of the
* controlled block.
*/
Ref<NiStringPalette > stringPalette;
/*!
* The name of the animated node.
*/
string nodeName;
/*!
* Offset in the string palette where the name of the controlled node
* (NiNode, NiTriShape, ...) starts.
*/
uint nodeNameOffset;
/*!
* Name of the property (NiMaterialProperty, ...), if this controller
* controls a property.
*/
string propertyType;
/*!
* Offset in the string palette where the property (NiMaterialProperty,
* ...) starts, if this controller controls a property. Otherwise, -1.
*/
uint propertyTypeOffset;
/*!
* Probably the block type name of the controller in the NIF file that is
* child of the controlled block.
*/
string controllerType;
/*!
* Apparently the offset in the string palette of some type of controller
* related to Interpolator (for example, a 'NiTransformInterpolator' will
* have here a 'NiTransformController', etc.). Sometimes the type of
* controller that links to the interpolator. Probably it refers to the
* controller in the NIF file that is child of the controlled block, via
* its type name.
*/
uint controllerTypeOffset;
/*!
* Some variable string (such as 'SELF_ILLUM', '0-0-TT_TRANSLATE_U',
* 'tongue_out', etc.).
*/
string variable1;
/*!
* Offset in the string palette where some variable string starts (such
* as 'SELF_ILLUM', '0-0-TT_TRANSLATE_U', 'tongue_out', etc.). Usually,
* -1.
*/
uint variableOffset1;
/*!
* Another variable string, apparently used for particle system
* controllers.
*/
string variable2;
/*!
* Offset in the string palette where some variable string starts (so far
* only 'EmitterActive' and 'BirthRate' have been observed in official
* files, used for particle system controllers). Usually, -1.
*/
uint variableOffset2;
/*! Default Constructor */
ControllerLink();
/*! Default Destructor */
~ControllerLink();
/*!
* Name of a controllable block in another NIF file.
*/
string name;
/*!
* Link to an interpolator.
*/
Ref<NiInterpolator > interpolator;
/*!
* Unknown link. Usually -1.
*/
Ref<NiObject > unknownLink1;
/*!
* Unknown.
*/
Ref<NiObject > unknownLink2;
/*!
* Unknown.
*/
ushort unknownShort0;
/*!
* Idle animations tend to have low values for this, and blocks that have
* high values tend to correspond with the important parts of the
* animation. WARNING: BREAKS CIV4 NIF FILES! Only observed in Oblivion
* NIF files so far.
*/
byte priority_;
/*!
* Refers to the NiStringPalette which contains the name of the
* controlled block.
*/
Ref<NiStringPalette > stringPalette;
/*!
* The name of the animated node.
*/
string nodeName;
/*!
* Offset in the string palette where the name of the controlled node
* (NiNode, NiTriShape, ...) starts.
*/
uint nodeNameOffset;
/*!
* Name of the property (NiMaterialProperty, ...), if this controller
* controls a property.
*/
string propertyType;
/*!
* Offset in the string palette where the property (NiMaterialProperty,
* ...) starts, if this controller controls a property. Otherwise, -1.
*/
uint propertyTypeOffset;
/*!
* Probably the block type name of the controller in the NIF file that is
* child of the controlled block.
*/
string controllerType;
/*!
* Apparently the offset in the string palette of some type of controller
* related to Interpolator (for example, a 'NiTransformInterpolator' will
* have here a 'NiTransformController', etc.). Sometimes the type of
* controller that links to the interpolator. Probably it refers to the
* controller in the NIF file that is child of the controlled block, via
* its type name.
*/
uint controllerTypeOffset;
/*!
* Some variable string (such as 'SELF_ILLUM', '0-0-TT_TRANSLATE_U',
* 'tongue_out', etc.).
*/
string variable1;
/*!
* Offset in the string palette where some variable string starts (such
* as 'SELF_ILLUM', '0-0-TT_TRANSLATE_U', 'tongue_out', etc.). Usually,
* -1.
*/
uint variableOffset1;
/*!
* Another variable string, apparently used for particle system
* controllers.
*/
string variable2;
/*!
* Offset in the string palette where some variable string starts (so far
* only 'EmitterActive' and 'BirthRate' have been observed in official
* files, used for particle system controllers). Usually, -1.
*/
uint variableOffset2;
};
#endif
......@@ -12,21 +12,21 @@ All rights reserved. Please see niflib.h for licence. */
* The NIF file footer.
*/
struct Footer {
/*! Default Constructor */
Footer();
/*! Default Destructor */
~Footer();
/*!
* The number of root references.
*/
uint numRoots;
/*!
* List of root blocks. If there is a camera, for 1st person view, then
* this block is referred to as well in this list, even if it is not a
* root block (usually we want the camera to be attached to the Bip Head
* node).
*/
vector<Ref<NiAVObject > > roots;
/*! Default Constructor */
Footer();
/*! Default Destructor */
~Footer();
/*!
* The number of root references.
*/
uint numRoots;
/*!
* List of root blocks. If there is a camera, for 1st person view, then
* this block is referred to as well in this list, even if it is not a
* root block (usually we want the camera to be attached to the Bip Head
* node).
*/
vector<Ref<NiAVObject > > roots;
};
#endif
......@@ -11,26 +11,26 @@ All rights reserved. Please see niflib.h for licence. */
* Describes a furniture position?
*/
struct FurniturePosition {
/*! Default Constructor */
FurniturePosition();
/*! Default Destructor */
~FurniturePosition();
/*!
* Unknown. Position?
*/
Vector3 unknownVector;
/*!
* Unknown.
*/
ushort unknownShort;
/*!
* This might refer to a furnituremarkerxx.nif file.
*/
byte positionRef1_;
/*!
* This might also refer to a furnituremarkerxx.nif file.
*/
byte positionRef2_;
/*! Default Constructor */
FurniturePosition();
/*! Default Destructor */
~FurniturePosition();
/*!
* Unknown. Position?
*/
Vector3 unknownVector;
/*!
* Unknown.
*/
ushort unknownShort;
/*!
* This might refer to a furnituremarkerxx.nif file.
*/
byte positionRef1_;
/*!
* This might also refer to a furnituremarkerxx.nif file.
*/
byte positionRef2_;
};
#endif
......@@ -11,75 +11,75 @@ All rights reserved. Please see niflib.h for licence. */
* The NIF file header.
*/
struct Header {
/*! Default Constructor */
Header();
/*! Default Destructor */
~Header();
/*!
* 'NetImmerse File Format x.x.x.x' (versions <= 10.0.1.2) or 'Gamebryo
* File Format x.x.x.x' (versions >= 10.1.0.0), with x.x.x.x the version
* written out. Ends with a newline character (0x0A).
*/
HeaderString headerString;
/*!
* The NIF version, in hexadecimal notation: 0x04000002, 0x0401000C,
* 0x04020002, 0x04020100, 0x04020200, 0x0A000100, 0x0A010000,
* 0x0A020000, 0x14000004, ...
*/
uint version;
/*!
* Determines the endian-ness of the data. 1 = little endian (default) 0
* = big endian
*/
byte endianType;
/*!
* An extra version number, for companies that decide to modify the file
* format.
*/
uint userVersion;
/*!
* Number of file blocks.
*/
uint numBlocks;
/*!
* Unknown.
*/
uint unknownInt1;
/*!
* Unknown.
*/
uint unknownInt3;
/*!
* Could be the name of the creator of the NIF file?
*/
ShortString creator_;
/*!
* Unknown. Can be something like 'TriStrip Process Script'.
*/
ShortString exportType_;
/*!
* Unknown. Possibly the selected option of the export script. Can be
* something like 'Default Export Script'.
*/
ShortString exportScript_;
/*!
* Number of block types in this NIF file.
*/
ushort numBlockTypes;
/*!
* List of all block types used in this NIF file.
*/
vector<string > blockTypes;
/*!
* Maps file blocks on their corresponding type: first file block is of
* type block_types[block_type_index[0]], the second of
* block_types[block_type_index[1]], etc.
*/
vector<ushort > blockTypeIndex;
/*!
* Unknown.
*/
uint unknownInt2;
/*! Default Constructor */
Header();
/*! Default Destructor */
~Header();
/*!
* 'NetImmerse File Format x.x.x.x' (versions <= 10.0.1.2) or 'Gamebryo
* File Format x.x.x.x' (versions >= 10.1.0.0), with x.x.x.x the version
* written out. Ends with a newline character (0x0A).
*/
HeaderString headerString;
/*!
* The NIF version, in hexadecimal notation: 0x04000002, 0x0401000C,
* 0x04020002, 0x04020100, 0x04020200, 0x0A000100, 0x0A010000,
* 0x0A020000, 0x14000004, ...
*/
uint version;
/*!
* Determines the endian-ness of the data. 1 = little endian (default) 0
* = big endian
*/
byte endianType;
/*!
* An extra version number, for companies that decide to modify the file
* format.
*/
uint userVersion;
/*!
* Number of file blocks.
*/
uint numBlocks;
/*!
* Unknown.
*/
uint unknownInt1;
/*!
* Unknown.
*/
uint unknownInt3;
/*!
* Could be the name of the creator of the NIF file?
*/
ShortString creator_;
/*!
* Unknown. Can be something like 'TriStrip Process Script'.
*/
ShortString exportType_;
/*!
* Unknown. Possibly the selected option of the export script. Can be
* something like 'Default Export Script'.
*/
ShortString exportScript_;
/*!
* Number of block types in this NIF file.
*/
ushort numBlockTypes;
/*!
* List of all block types used in this NIF file.
*/
vector<string > blockTypes;
/*!
* Maps file blocks on their corresponding type: first file block is of
* type block_types[block_type_index[0]], the second of
* block_types[block_type_index[1]], etc.
*/
vector<ushort > blockTypeIndex;
/*!
* Unknown.
*/
uint unknownInt2;
};
#endif
......@@ -13,18 +13,18 @@ All rights reserved. Please see niflib.h for licence. */
*/
template <class T >
struct KeyGroup {
/*!
* Number of keys in the array.
*/
uint numKeys;
/*!
* The key type.
*/
KeyType interpolation;
/*!
* The keys.
*/
vector<Key<T > > keys;
/*!
* Number of keys in the array.
*/
uint numKeys;
/*!
* The key type.
*/
KeyType interpolation;
/*!
* The keys.
*/
vector<Key<T > > keys;
};
#endif
......@@ -11,18 +11,18 @@ All rights reserved. Please see niflib.h for licence. */
* The distance range where a specific level of detail applies.
*/
struct LODRange {
/*! Default Constructor */
LODRange();
/*! Default Destructor */
~LODRange();
/*!
* Begining of range.
*/
float near;
/*!
* End of Range.
*/
float far;
/*! Default Constructor */
LODRange();
/*! Default Destructor */
~LODRange();
/*!
* Begining of range.
*/
float near;
/*!
* End of Range.
*/
float far;
};
#endif
......@@ -11,50 +11,50 @@ All rights reserved. Please see niflib.h for licence. */
*
*/
struct LimitedHingeDescriptor {
/*! Default Constructor */
LimitedHingeDescriptor();
/*! Default Destructor */
~LimitedHingeDescriptor();
/*!
* Unknown.
*/
Float4 pivotA;
/*!
* Unknown.
*/
Float4 axleA_;
/*!
* Unknown.
*/
Float4 perp2axleina1;
/*!
* Unknown.
*/
Float4 perp2axleina2;
/*!
* Unknown.
*/
Float4 pivotB;
/*!
* Unknown.
*/
Float4 axleB;
/*!
* Unknown.
*/
Float4 unknownVector;
/*!
* Unknown.
*/
float minAngle;
/*!
* Unknown.
*/
float maxAngle;
/*!
* Unknown.
*/
float maxFriction;
/*! Default Constructor */
LimitedHingeDescriptor();
/*! Default Destructor */
~LimitedHingeDescriptor();
/*!
* Unknown.
*/
Float4 pivotA;
/*!
* Unknown.
*/
Float4 axleA_;
/*!
* Unknown.
*/
Float4 perp2axleina1;
/*!
* Unknown.
*/
Float4 perp2axleina2;
/*!
* Unknown.
*/
Float4 pivotB;
/*!
* Unknown.
*/
Float4 axleB;
/*!
* Unknown.
*/
Float4 unknownVector;
/*!
* Unknown.
*/
float minAngle;
/*!
* Unknown.
*/
float maxAngle;
/*!
* Unknown.
*/
float maxFriction;
};
#endif
......@@ -11,18 +11,18 @@ All rights reserved. Please see niflib.h for licence. */
* Group of vertex indices of vertices that match.
*/
struct MatchGroup {
/*! Default Constructor */
MatchGroup();
/*! Default Destructor */
~MatchGroup();
/*!
* Number of vertices in this group.
*/
ushort numVertices;
/*!
* The vertex indices.
*/
vector<ushort > vertexIndices;
/*! Default Constructor */
MatchGroup();
/*! Default Destructor */
~MatchGroup();
/*!
* Number of vertices in this group.
*/
ushort numVertices;
/*!
* The vertex indices.
*/
vector<ushort > vertexIndices;
};
#endif
......@@ -11,22 +11,22 @@ All rights reserved. Please see niflib.h for licence. */
* Description of a MipMap within a NiPixelData block.
*/
struct MipMap {
/*! Default Constructor */
MipMap();
/*! Default Destructor */
~MipMap();
/*!
* Width of the mipmap image.
*/
uint width;
/*!
* Height of the mipmap image.
*/
uint height;
/*!
* Offset into the pixel data array where this mipmap starts.
*/
uint offset;
/*! Default Constructor */
MipMap();
/*! Default Destructor */
~MipMap();
/*!
* Width of the mipmap image.
*/
uint width;
/*!
* Height of the mipmap image.
*/
uint height;
/*!
* Offset into the pixel data array where this mipmap starts.
*/
uint offset;
};
#endif
......@@ -11,35 +11,35 @@ All rights reserved. Please see niflib.h for licence. */
* Geometry morphing data component.
*/
struct Morph {
/*! Default Constructor */
Morph();
/*! Default Destructor */
~Morph();
/*!
* Name of the frame.
*/
string frameName;
/*!
* The number of morph keys that follow.
*/
uint numMorphKeys;
/*!
* Unlike most blocks, the presense of this value is not conditional on
* there being keys.
*/
KeyType morphInterpolation;
/*!
* The morph key frames.
*/
vector<Key<float > > morphKeys;
/*!
* Unknown.
*/
uint unknownInt;
/*!
* Morph vectors.
*/
vector<Vector3 > vectors;
/*! Default Constructor */
Morph();
/*! Default Destructor */
~Morph();
/*!
* Name of the frame.
*/
string frameName;
/*!
* The number of morph keys that follow.
*/
uint numMorphKeys;
/*!
* Unlike most blocks, the presense of this value is not conditional on
* there being keys.
*/
KeyType morphInterpolation;
/*!
* The morph key frames.
*/
vector<Key<float > > morphKeys;
/*!
* Unknown.
*/
uint unknownInt;
/*!
* Morph vectors.
*/
vector<Vector3 > vectors;
};
#endif
......@@ -12,18 +12,18 @@ All rights reserved. Please see niflib.h for licence. */
* A group of NiNodes references.
*/
struct NodeGroup {
/*! Default Constructor */
NodeGroup();
/*! Default Destructor */
~NodeGroup();
/*!
* Number of node references that follow.
*/
uint numNodes;
/*!
* The list of NiNode references.
*/
vector<Ref<NiNode > > nodes;
/*! Default Constructor */
NodeGroup();
/*! Default Destructor */
~NodeGroup();
/*!
* Number of node references that follow.
*/
uint numNodes;
/*!
* The list of NiNode references.
*/
vector<Ref<NiNode > > nodes;
};
#endif
......@@ -11,38 +11,38 @@ All rights reserved. Please see niflib.h for licence. */
* particle array entry
*/
struct Particle {
/*! Default Constructor */
Particle();
/*! Default Destructor */
~Particle();
/*!
* Particle velocity
*/
Vector3 velocity;
/*!
* Unknown
*/
Vector3 unknownVector;
/*!
* The particle's age.
*/
float lifetime;
/*!
* Maximum age of the particle.
*/
float lifespan;
/*!
* Timestamp of the last update.
*/
float timestamp;
/*!
* Unknown short (=0)
*/
ushort unknownShort;
/*!
* Particle/vertex index matches array index
*/
ushort vertexId;
/*! Default Constructor */
Particle();
/*! Default Destructor */
~Particle();
/*!
* Particle velocity
*/
Vector3 velocity;
/*!
* Unknown
*/
Vector3 unknownVector;
/*!
* The particle's age.
*/
float lifetime;
/*!
* Maximum age of the particle.
*/
float lifespan;
/*!
* Timestamp of the last update.
*/
float timestamp;
/*!
* Unknown short (=0)
*/
ushort unknownShort;
/*!
* Particle/vertex index matches array index
*/
ushort vertexId;
};
#endif
......@@ -11,26 +11,26 @@ All rights reserved. Please see niflib.h for licence. */
* A quaternion as it appears in the havok blocks.
*/
struct QuaternionXYZW {
/*! Default Constructor */
QuaternionXYZW();
/*! Default Destructor */
~QuaternionXYZW();
/*!
* The x-coordinate.
*/
float x;
/*!
* The y-coordinate.
*/
float y;
/*!
* The z-coordinate.
*/
float z;
/*!
* The w-coordinate.
*/
float w;
/*! Default Constructor */
QuaternionXYZW();
/*! Default Destructor */
~QuaternionXYZW();
/*!
* The x-coordinate.
*/
float x;
/*!
* The y-coordinate.
*/
float y;
/*!
* The z-coordinate.
*/
float z;
/*!
* The w-coordinate.
*/
float w;
};
#endif
......@@ -11,58 +11,58 @@ All rights reserved. Please see niflib.h for licence. */
*
*/
struct RagDollDescriptor {
/*! Default Constructor */
RagDollDescriptor();
/*! Default Destructor */
~RagDollDescriptor();
/*!
* Unknown.
*/
Float4 pivotA;
/*!
* Unknown.
*/
Float4 planeA;
/*!
* Unknown.
*/
Float4 twistA;
/*!
* Unknown.
*/
Float4 pivotB;
/*!
* Unknown.
*/
Float4 planeB;
/*!
* Unknown.
*/
Float4 twistB;
/*!
* Unknown.
*/
float coneMinAngle;
/*!
* Unknown.
*/
float planeMinAngle;
/*!
* Unknown.
*/
float planeMaxAngle;
/*!
* Unknown.
*/
float twistMinAngle;
/*!
* Unknown.
*/
float twistMaxAngle;
/*!
* Unknown.
*/
float maxFriction;
/*! Default Constructor */
RagDollDescriptor();
/*! Default Destructor */
~RagDollDescriptor();
/*!
* Unknown.
*/
Float4 pivotA;
/*!
* Unknown.
*/
Float4 planeA;
/*!
* Unknown.
*/
Float4 twistA;
/*!
* Unknown.
*/
Float4 pivotB;
/*!
* Unknown.
*/
Float4 planeB;
/*!
* Unknown.
*/
Float4 twistB;
/*!
* Unknown.
*/
float coneMinAngle;
/*!
* Unknown.
*/
float planeMinAngle;
/*!
* Unknown.
*/
float planeMaxAngle;
/*!
* Unknown.
*/
float twistMinAngle;
/*!
* Unknown.
*/
float twistMaxAngle;
/*!
* Unknown.
*/
float maxFriction;
};
#endif
......@@ -12,18 +12,18 @@ All rights reserved. Please see niflib.h for licence. */
*/
template <class T >
struct RotationKeyArray {
/*!
* Number of keys.
*/
uint numKeys;
/*!
* Key type (1, 2, 3, or 4).
*/
KeyType keyType;
/*!
* The rotation keys.
*/
vector<Key<T > > keys;
/*!
* Number of keys.
*/
uint numKeys;
/*!
* Key type (1, 2, 3, or 4).
*/
KeyType keyType;
/*!
* The rotation keys.
*/
vector<Key<T > > keys;
};
#endif
......@@ -11,22 +11,22 @@ All rights reserved. Please see niflib.h for licence. */
* An extended texture description for shader textures.
*/
struct ShaderTexDesc {
/*! Default Constructor */
ShaderTexDesc();
/*! Default Destructor */
~ShaderTexDesc();
/*!
* Is it used?
*/
bool isUsed;
/*!
* The texture data.
*/
TexDesc textureData;
/*!
* Unknown.
*/
uint unknownInt;
/*! Default Constructor */
ShaderTexDesc();
/*! Default Destructor */
~ShaderTexDesc();
/*!
* Is it used?
*/
bool isUsed;
/*!
* The texture data.
*/
TexDesc textureData;
/*!
* Unknown.
*/
uint unknownInt;
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment