Newer
Older
/* Copyright (c) 2006, NIF File Format Library and Tools
Shon Ferguson
committed
All rights reserved. Please see niflib.h for license. */
//---THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT---//
//To change this file, alter the niftools/docsys/gen_niflib.py Python script.
#include <string>
#include <iostream>
#include "../../include/NIF_IO.h"
Shon Ferguson
committed
#include "../../include/gen/enums.h"
#include "../../include/gen/enums_intl.h"
Shon Ferguson
committed
void NifStream( ForceType & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( ForceType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, ForceType const & val ) {
switch ( val ) {
case FORCE_PLANAR: return out << "FORCE_PLANAR";
case FORCE_SPHERICAL: return out << "FORCE_SPHERICAL";
case FORCE_UNKNOWN: return out << "FORCE_UNKNOWN";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
//--CollisionMode--//
void NifStream( CollisionMode & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = CollisionMode(temp);
}
void NifStream( CollisionMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, CollisionMode const & val ) {
switch ( val ) {
case CM_USE_OBB: return out << "CM_USE_OBB";
case CM_USE_TRI: return out << "CM_USE_TRI";
case CM_USE_ABV: return out << "CM_USE_ABV";
case CM_NOTEST: return out << "CM_NOTEST";
case CM_USE_NIBOUND: return out << "CM_USE_NIBOUND";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
//--TexTransform--//
void NifStream( TexTransform & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = TexTransform(temp);
}
void NifStream( TexTransform const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, TexTransform const & val ) {
switch ( val ) {
case TT_TRANSLATE_U: return out << "TT_TRANSLATE_U";
case TT_TRANSLATE_V: return out << "TT_TRANSLATE_V";
case TT_ROTATE: return out << "TT_ROTATE";
case TT_SCALE_U: return out << "TT_SCALE_U";
case TT_SCALE_V: return out << "TT_SCALE_V";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
Shon Ferguson
committed
void NifStream( HavokMaterial & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( HavokMaterial const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, HavokMaterial const & val ) {
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
case HAV_MAT_STONE: return out << "HAV_MAT_STONE";
case HAV_MAT_CLOTH: return out << "HAV_MAT_CLOTH";
case HAV_MAT_DIRT: return out << "HAV_MAT_DIRT";
case HAV_MAT_GLASS: return out << "HAV_MAT_GLASS";
case HAV_MAT_GRASS: return out << "HAV_MAT_GRASS";
case HAV_MAT_METAL: return out << "HAV_MAT_METAL";
case HAV_MAT_ORGANIC: return out << "HAV_MAT_ORGANIC";
case HAV_MAT_SKIN: return out << "HAV_MAT_SKIN";
case HAV_MAT_WATER: return out << "HAV_MAT_WATER";
case HAV_MAT_WOOD: return out << "HAV_MAT_WOOD";
case HAV_MAT_HEAVY_STONE: return out << "HAV_MAT_HEAVY_STONE";
case HAV_MAT_HEAVY_METAL: return out << "HAV_MAT_HEAVY_METAL";
case HAV_MAT_HEAVY_WOOD: return out << "HAV_MAT_HEAVY_WOOD";
case HAV_MAT_CHAIN: return out << "HAV_MAT_CHAIN";
case HAV_MAT_SNOW: return out << "HAV_MAT_SNOW";
case HAV_MAT_STONE_STAIRS: return out << "HAV_MAT_STONE_STAIRS";
case HAV_MAT_CLOTH_STAIRS: return out << "HAV_MAT_CLOTH_STAIRS";
case HAV_MAT_DIRT_STAIRS: return out << "HAV_MAT_DIRT_STAIRS";
case HAV_MAT_GLASS_STAIRS: return out << "HAV_MAT_GLASS_STAIRS";
case HAV_MAT_GRASS_STAIRS: return out << "HAV_MAT_GRASS_STAIRS";
case HAV_MAT_METAL_STAIRS: return out << "HAV_MAT_METAL_STAIRS";
case HAV_MAT_ORGANIC_STAIRS: return out << "HAV_MAT_ORGANIC_STAIRS";
case HAV_MAT_SKIN_STAIRS: return out << "HAV_MAT_SKIN_STAIRS";
case HAV_MAT_WATER_STAIRS: return out << "HAV_MAT_WATER_STAIRS";
case HAV_MAT_WOOD_STAIRS: return out << "HAV_MAT_WOOD_STAIRS";
case HAV_MAT_HEAVY_STONE_STAIRS: return out << "HAV_MAT_HEAVY_STONE_STAIRS";
case HAV_MAT_HEAVY_METAL_STAIRS: return out << "HAV_MAT_HEAVY_METAL_STAIRS";
case HAV_MAT_HEAVY_WOOD_STAIRS: return out << "HAV_MAT_HEAVY_WOOD_STAIRS";
case HAV_MAT_CHAIN_STAIRS: return out << "HAV_MAT_CHAIN_STAIRS";
case HAV_MAT_SNOW_STAIRS: return out << "HAV_MAT_SNOW_STAIRS";
case HAV_MAT_ELEVATOR: return out << "HAV_MAT_ELEVATOR";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( CompareMode & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( CompareMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, CompareMode const & val ) {
case TEST_NEVER: return out << "TEST_NEVER";
case TEST_LESS: return out << "TEST_LESS";
case TEST_EQUAL: return out << "TEST_EQUAL";
case TEST_LESS_EQUAL: return out << "TEST_LESS_EQUAL";
case TEST_NOT_EQUAL: return out << "TEST_NOT_EQUAL";
case TEST_GREATER_EQUAL: return out << "TEST_GREATER_EQUAL";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
//--VelocityType--//
void NifStream( VelocityType & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = VelocityType(temp);
}
void NifStream( VelocityType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, VelocityType const & val ) {
switch ( val ) {
case VELOCITY_USE_NORMALS: return out << "VELOCITY_USE_NORMALS";
case VELOCITY_USE_RANDOM: return out << "VELOCITY_USE_RANDOM";
case VELOCITY_USE_DIRECTION: return out << "VELOCITY_USE_DIRECTION";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
Shon Ferguson
committed
void NifStream( TexFilterMode & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( TexFilterMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, TexFilterMode const & val ) {
case FILTER_NEAREST: return out << "FILTER_NEAREST";
case FILTER_BILERP: return out << "FILTER_BILERP";
case FILTER_TRILERP: return out << "FILTER_TRILERP";
case FILTER_NEAREST_MIPNEAREST: return out << "FILTER_NEAREST_MIPNEAREST";
case FILTER_NEAREST_MIPLERP: return out << "FILTER_NEAREST_MIPLERP";
case FILTER_BILERP_MIPNEAREST: return out << "FILTER_BILERP_MIPNEAREST";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
//--SymmetryType--//
void NifStream( SymmetryType & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = SymmetryType(temp);
}
void NifStream( SymmetryType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, SymmetryType const & val ) {
switch ( val ) {
case SPHERICAL_SYMMETRY: return out << "SPHERICAL_SYMMETRY";
case CYLINDRICAL_SYMMETRY: return out << "CYLINDRICAL_SYMMETRY";
case PLANAR_SYMMETRY: return out << "PLANAR_SYMMETRY";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
Shon Ferguson
committed
void NifStream( LightMode & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( LightMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, LightMode const & val ) {
case LIGHT_MODE_EMISSIVE: return out << "LIGHT_MODE_EMISSIVE";
case LIGHT_MODE_EMI_AMB_DIF: return out << "LIGHT_MODE_EMI_AMB_DIF";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( MipMapFormat & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( MipMapFormat const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, MipMapFormat const & val ) {
case MIP_FMT_NO: return out << "MIP_FMT_NO";
case MIP_FMT_YES: return out << "MIP_FMT_YES";
case MIP_FMT_DEFAULT: return out << "MIP_FMT_DEFAULT";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( StencilAction & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( StencilAction const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, StencilAction const & val ) {
case ACTION_KEEP: return out << "ACTION_KEEP";
case ACTION_ZERO: return out << "ACTION_ZERO";
case ACTION_REPLACE: return out << "ACTION_REPLACE";
case ACTION_INCREMENT: return out << "ACTION_INCREMENT";
case ACTION_DECREMENT: return out << "ACTION_DECREMENT";
case ACTION_INVERT: return out << "ACTION_INVERT";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( OblivionLayer & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
NifStream( temp, in, info );
val = OblivionLayer(temp);
}
Shon Ferguson
committed
void NifStream( OblivionLayer const & val, ostream& out, const NifInfo & info ) {
NifStream( (byte)(val), out, info );
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
ostream & operator<<( ostream & out, OblivionLayer const & val ) {
switch ( val ) {
case OL_UNIDENTIFIED: return out << "OL_UNIDENTIFIED";
case OL_STATIC: return out << "OL_STATIC";
case OL_ANIM_STATIC: return out << "OL_ANIM_STATIC";
case OL_TRANSPARENT: return out << "OL_TRANSPARENT";
case OL_CLUTTER: return out << "OL_CLUTTER";
case OL_WEAPON: return out << "OL_WEAPON";
case OL_PROJECTILE: return out << "OL_PROJECTILE";
case OL_SPELL: return out << "OL_SPELL";
case OL_BIPED: return out << "OL_BIPED";
case OL_TREES: return out << "OL_TREES";
case OL_PROPS: return out << "OL_PROPS";
case OL_WATER: return out << "OL_WATER";
case OL_TRIGGER: return out << "OL_TRIGGER";
case OL_TERRAIN: return out << "OL_TERRAIN";
case OL_TRAP: return out << "OL_TRAP";
case OL_NONCOLLIDABLE: return out << "OL_NONCOLLIDABLE";
case OL_CLOUD_TRAP: return out << "OL_CLOUD_TRAP";
case OL_GROUND: return out << "OL_GROUND";
case OL_PORTAL: return out << "OL_PORTAL";
case OL_STAIRS: return out << "OL_STAIRS";
case OL_CHAR_CONTROLLER: return out << "OL_CHAR_CONTROLLER";
case OL_AVOID_BOX: return out << "OL_AVOID_BOX";
case OL_UNKNOWN1: return out << "OL_UNKNOWN1";
case OL_UNKNOWN2: return out << "OL_UNKNOWN2";
case OL_CAMERA_PICK: return out << "OL_CAMERA_PICK";
case OL_ITEM_PICK: return out << "OL_ITEM_PICK";
case OL_LINE_OF_SIGHT: return out << "OL_LINE_OF_SIGHT";
case OL_PATH_PICK: return out << "OL_PATH_PICK";
case OL_CUSTOM_PICK_1: return out << "OL_CUSTOM_PICK_1";
case OL_CUSTOM_PICK_2: return out << "OL_CUSTOM_PICK_2";
case OL_SPELL_EXPLOSION: return out << "OL_SPELL_EXPLOSION";
case OL_DROPPING_PICK: return out << "OL_DROPPING_PICK";
case OL_OTHER: return out << "OL_OTHER";
case OL_HEAD: return out << "OL_HEAD";
case OL_BODY: return out << "OL_BODY";
case OL_SPINE1: return out << "OL_SPINE1";
case OL_SPINE2: return out << "OL_SPINE2";
case OL_L_UPPER_ARM: return out << "OL_L_UPPER_ARM";
case OL_L_FOREARM: return out << "OL_L_FOREARM";
case OL_L_HAND: return out << "OL_L_HAND";
case OL_L_THIGH: return out << "OL_L_THIGH";
case OL_L_CALF: return out << "OL_L_CALF";
case OL_L_FOOT: return out << "OL_L_FOOT";
case OL_R_UPPER_ARM: return out << "OL_R_UPPER_ARM";
case OL_R_FOREARM: return out << "OL_R_FOREARM";
case OL_R_HAND: return out << "OL_R_HAND";
case OL_R_THIGH: return out << "OL_R_THIGH";
case OL_R_CALF: return out << "OL_R_CALF";
case OL_R_FOOT: return out << "OL_R_FOOT";
case OL_TAIL: return out << "OL_TAIL";
case OL_SIDE_WEAPON: return out << "OL_SIDE_WEAPON";
case OL_SHEILD: return out << "OL_SHEILD";
case OL_QUIVER: return out << "OL_QUIVER";
case OL_BACK_WEAPON: return out << "OL_BACK_WEAPON";
case OL_BACK_WEAPON2: return out << "OL_BACK_WEAPON2";
case OL_PONYTAIL: return out << "OL_PONYTAIL";
case OL_WING: return out << "OL_WING";
case OL_NULL: return out << "OL_NULL";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( FaceDrawMode & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( FaceDrawMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, FaceDrawMode const & val ) {
case DRAW_CCW_OR_BOTH: return out << "DRAW_CCW_OR_BOTH";
case DRAW_CCW: return out << "DRAW_CCW";
case DRAW_CW: return out << "DRAW_CW";
case DRAW_BOTH: return out << "DRAW_BOTH";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( AlphaFormat & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( AlphaFormat const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, AlphaFormat const & val ) {
case ALPHA_NONE: return out << "ALPHA_NONE";
case ALPHA_BINARY: return out << "ALPHA_BINARY";
case ALPHA_SMOOTH: return out << "ALPHA_SMOOTH";
case ALPHA_DEFAULT: return out << "ALPHA_DEFAULT";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
//--BoundVolumeType--//
void NifStream( BoundVolumeType & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = BoundVolumeType(temp);
}
void NifStream( BoundVolumeType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, BoundVolumeType const & val ) {
switch ( val ) {
case BASE_BV: return out << "BASE_BV";
case SPHERE_BV: return out << "SPHERE_BV";
case BOX_BV: return out << "BOX_BV";
case CAPSULE_BV: return out << "CAPSULE_BV";
case UNION_BV: return out << "UNION_BV";
case HALFSPACE_BV: return out << "HALFSPACE_BV";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
//--EffectType--//
void NifStream( EffectType & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = EffectType(temp);
}
void NifStream( EffectType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, EffectType const & val ) {
switch ( val ) {
case EFFECT_PROJECTED_LIGHT: return out << "EFFECT_PROJECTED_LIGHT";
case EFFECT_PROJECTED_SHADOW: return out << "EFFECT_PROJECTED_SHADOW";
case EFFECT_ENVIRONMENT_MAP: return out << "EFFECT_ENVIRONMENT_MAP";
case EFFECT_FOG_MAP: return out << "EFFECT_FOG_MAP";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
Shon Ferguson
committed
void NifStream( KeyType & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( KeyType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, KeyType const & val ) {
case LINEAR_KEY: return out << "LINEAR_KEY";
case QUADRATIC_KEY: return out << "QUADRATIC_KEY";
case TBC_KEY: return out << "TBC_KEY";
case XYZ_ROTATION_KEY: return out << "XYZ_ROTATION_KEY";
case UNKNOWN_KEY: return out << "UNKNOWN_KEY";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( VertMode & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( VertMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, VertMode const & val ) {
case VERT_MODE_SRC_IGNORE: return out << "VERT_MODE_SRC_IGNORE";
case VERT_MODE_SRC_EMISSIVE: return out << "VERT_MODE_SRC_EMISSIVE";
case VERT_MODE_SRC_AMB_DIF: return out << "VERT_MODE_SRC_AMB_DIF";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
//--SortingMode--//
void NifStream( SortingMode & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = SortingMode(temp);
}
void NifStream( SortingMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, SortingMode const & val ) {
switch ( val ) {
case SORTING_INHERIT: return out << "SORTING_INHERIT";
case SORTING_OFF: return out << "SORTING_OFF";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
//--CoordGenType--//
void NifStream( CoordGenType & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = CoordGenType(temp);
}
void NifStream( CoordGenType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, CoordGenType const & val ) {
switch ( val ) {
case CG_WORLD_PARALLEL: return out << "CG_WORLD_PARALLEL";
case CG_WORLD_PERSPECTIVE: return out << "CG_WORLD_PERSPECTIVE";
case CG_SPHERE_MAP: return out << "CG_SPHERE_MAP";
case CG_SPECULAR_CUBE_MAP: return out << "CG_SPECULAR_CUBE_MAP";
case CG_DIFFUSE_CUBE_MAP: return out << "CG_DIFFUSE_CUBE_MAP";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
Shon Ferguson
committed
void NifStream( ApplyMode & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( ApplyMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, ApplyMode const & val ) {
switch ( val ) {
case APPLY_REPLACE: return out << "APPLY_REPLACE";
case APPLY_DECAL: return out << "APPLY_DECAL";
case APPLY_MODULATE: return out << "APPLY_MODULATE";
case APPLY_HILIGHT: return out << "APPLY_HILIGHT";
case APPLY_HILIGHT2: return out << "APPLY_HILIGHT2";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( MotionSystem & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( MotionSystem const & val, ostream& out, const NifInfo & info ) {
NifStream( (byte)(val), out, info );
ostream & operator<<( ostream & out, MotionSystem const & val ) {
case MO_SYS_BOX: return out << "MO_SYS_BOX";
case MO_SYS_KEYFRAMED: return out << "MO_SYS_KEYFRAMED";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( BillboardMode & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned short temp;
Shon Ferguson
committed
NifStream( temp, in, info );
val = BillboardMode(temp);
}
Shon Ferguson
committed
void NifStream( BillboardMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned short)(val), out, info );
ostream & operator<<( ostream & out, BillboardMode const & val ) {
switch ( val ) {
case ALWAYS_FACE_CAMERA: return out << "ALWAYS_FACE_CAMERA";
case ROTATE_ABOUT_UP: return out << "ROTATE_ABOUT_UP";
case RIGID_FACE_CAMERA: return out << "RIGID_FACE_CAMERA";
case ALWAYS_FACE_CENTER: return out << "ALWAYS_FACE_CENTER";
case RIGID_FACE_CENTER: return out << "RIGID_FACE_CENTER";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
//--TargetColor--//
void NifStream( TargetColor & val, istream& in, const NifInfo & info ) {
unsigned short temp;
NifStream( temp, in, info );
val = TargetColor(temp);
}
void NifStream( TargetColor const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned short)(val), out, info );
}
ostream & operator<<( ostream & out, TargetColor const & val ) {
switch ( val ) {
case TC_AMBIENT: return out << "TC_AMBIENT";
case TC_DIFFUSE: return out << "TC_DIFFUSE";
case TC_SPECULAR: return out << "TC_SPECULAR";
case TC_SELF_ILLUM: return out << "TC_SELF_ILLUM";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
Shon Ferguson
committed
void NifStream( TexType & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( TexType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, TexType const & val ) {
switch ( val ) {
case BASE_MAP: return out << "BASE_MAP";
case DARK_MAP: return out << "DARK_MAP";
case DETAIL_MAP: return out << "DETAIL_MAP";
case GLOSS_MAP: return out << "GLOSS_MAP";
case GLOW_MAP: return out << "GLOW_MAP";
case BUMP_MAP: return out << "BUMP_MAP";
case DECAL_0_MAP: return out << "DECAL_0_MAP";
case DECAL_1_MAP: return out << "DECAL_1_MAP";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
//--ImageType--//
void NifStream( ImageType & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = ImageType(temp);
}
void NifStream( ImageType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, ImageType const & val ) {
switch ( val ) {
case RGB: return out << "RGB";
case RGBA: return out << "RGBA";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
Shon Ferguson
committed
void NifStream( PixelLayout & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( PixelLayout const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, PixelLayout const & val ) {
switch ( val ) {
case PIX_LAY_PALETTISED: return out << "PIX_LAY_PALETTISED";
case PIX_LAY_HIGH_COLOR_16: return out << "PIX_LAY_HIGH_COLOR_16";
case PIX_LAY_TRUE_COLOR_32: return out << "PIX_LAY_TRUE_COLOR_32";
case PIX_LAY_COMPRESSED: return out << "PIX_LAY_COMPRESSED";
case PIX_LAY_BUMPMAP: return out << "PIX_LAY_BUMPMAP";
case PIX_LAY_DEFAULT: return out << "PIX_LAY_DEFAULT";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
//--ConsistencyType--//
void NifStream( ConsistencyType & val, istream& in, const NifInfo & info ) {
unsigned short temp;
NifStream( temp, in, info );
val = ConsistencyType(temp);
}
void NifStream( ConsistencyType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned short)(val), out, info );
}
ostream & operator<<( ostream & out, ConsistencyType const & val ) {
switch ( val ) {
case CT_MUTABLE: return out << "CT_MUTABLE";
case CT_STATIC: return out << "CT_STATIC";
case CT_VOLATILE: return out << "CT_VOLATILE";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
Shon Ferguson
committed
void NifStream( TexClampMode & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
val = TexClampMode(temp);
}
Shon Ferguson
committed
void NifStream( TexClampMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
ostream & operator<<( ostream & out, TexClampMode const & val ) {
switch ( val ) {
case CLAMP_S_CLAMP_T: return out << "CLAMP_S_CLAMP_T";
case CLAMP_S_WRAP_T: return out << "CLAMP_S_WRAP_T";
case WRAP_S_CLAMP_T: return out << "WRAP_S_CLAMP_T";
case WRAP_S_WRAP_T: return out << "WRAP_S_WRAP_T";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( MotionQuality & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( MotionQuality const & val, ostream& out, const NifInfo & info ) {
NifStream( (byte)(val), out, info );
}
ostream & operator<<( ostream & out, MotionQuality const & val ) {
switch ( val ) {
case MO_QUAL_MOVING: return out << "MO_QUAL_MOVING";
case MO_QUAL_FIXED: return out << "MO_QUAL_FIXED";
case MO_QUAL_KEYFRAMED: return out << "MO_QUAL_KEYFRAMED";
case MO_QUAL_MOVING2: return out << "MO_QUAL_MOVING2";
case MO_QUAL_MOVING3: return out << "MO_QUAL_MOVING3";
case MO_QUAL_CRITICAL: return out << "MO_QUAL_CRITICAL";
case MO_QUAL_BULLET: return out << "MO_QUAL_BULLET";
case MO_QUAL_USER: return out << "MO_QUAL_USER";
case MO_QUAL_NULL: return out << "MO_QUAL_NULL";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
//--EndianType--//
void NifStream( EndianType & val, istream& in, const NifInfo & info ) {
byte temp;
NifStream( temp, in, info );
val = EndianType(temp);
}
void NifStream( EndianType const & val, ostream& out, const NifInfo & info ) {
NifStream( (byte)(val), out, info );
}
ostream & operator<<( ostream & out, EndianType const & val ) {
switch ( val ) {
case ENDIAN_BIG: return out << "ENDIAN_BIG";
case ENDIAN_LITTLE: return out << "ENDIAN_LITTLE";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
//--PropagationMode--//
void NifStream( PropagationMode & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = PropagationMode(temp);
}
void NifStream( PropagationMode const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, PropagationMode const & val ) {
switch ( val ) {
case PROPAGATE_ON_SUCCESS: return out << "PROPAGATE_ON_SUCCESS";
case PROPAGATE_ON_FAILURE: return out << "PROPAGATE_ON_FAILURE";
case PROPAGATE_ALWAYS: return out << "PROPAGATE_ALWAYS";
case PROPAGATE_NEVER: return out << "PROPAGATE_NEVER";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
Shon Ferguson
committed
void NifStream( PixelFormat & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( PixelFormat const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, PixelFormat const & val ) {
switch ( val ) {
case PX_FMT_RGB8: return out << "PX_FMT_RGB8";
case PX_FMT_RGBA8: return out << "PX_FMT_RGBA8";
case PX_FMT_PAL8: return out << "PX_FMT_PAL8";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( CycleType & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( CycleType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, CycleType const & val ) {
switch ( val ) {
case CYCLE_LOOP: return out << "CYCLE_LOOP";
case CYCLE_REVERSE: return out << "CYCLE_REVERSE";
case CYCLE_CLAMP: return out << "CYCLE_CLAMP";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
Shon Ferguson
committed
void NifStream( FieldType & val, istream& in, const NifInfo & info ) {
Shon Ferguson
committed
unsigned int temp;
Shon Ferguson
committed
NifStream( temp, in, info );
Shon Ferguson
committed
void NifStream( FieldType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, FieldType const & val ) {
switch ( val ) {
case FIELD_WIND: return out << "FIELD_WIND";
case FIELD_POINT: return out << "FIELD_POINT";
Shon Ferguson
committed
default: return out << "Invalid Value! - " << (unsigned int)(val);
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
//--DecayType--//
void NifStream( DecayType & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = DecayType(temp);
}
void NifStream( DecayType const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, DecayType const & val ) {
switch ( val ) {
case DECAY_NONE: return out << "DECAY_NONE";
case DECAY_LINEAR: return out << "DECAY_LINEAR";
case DECAY_EXPONENTIAL: return out << "DECAY_EXPONENTIAL";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}
//--EmitFrom--//
void NifStream( EmitFrom & val, istream& in, const NifInfo & info ) {
unsigned int temp;
NifStream( temp, in, info );
val = EmitFrom(temp);
}
void NifStream( EmitFrom const & val, ostream& out, const NifInfo & info ) {
NifStream( (unsigned int)(val), out, info );
}
ostream & operator<<( ostream & out, EmitFrom const & val ) {
switch ( val ) {
case EMIT_FROM_VERTICES: return out << "EMIT_FROM_VERTICES";
case EMIT_FROM_FACE_CENTER: return out << "EMIT_FROM_FACE_CENTER";
case EMIT_FROM_EDGE_CENTER: return out << "EMIT_FROM_EDGE_CENTER";
case EMIT_FROM_FACE_SURFACE: return out << "EMIT_FROM_FACE_SURFACE";
case EMIT_FROM_EDGE_SURFACE: return out << "EMIT_FROM_EDGE_SURFACE";
default: return out << "Invalid Value! - " << (unsigned int)(val);
}
}