Skip to content
Snippets Groups Projects
Commit c5d057bc authored by Shon Ferguson's avatar Shon Ferguson
Browse files

Used Tazpn's automatic accessor function generator to create functions for as...

Used Tazpn's automatic accessor function generator to create functions for as many classes as possible.
parent be486dcb
No related branches found
No related tags found
No related merge requests found
Showing
with 147 additions and 5 deletions
...@@ -35,3 +35,11 @@ const Type & APSysCtlr::GetType() const { ...@@ -35,3 +35,11 @@ const Type & APSysCtlr::GetType() const {
return TYPE; return TYPE;
}; };
string APSysCtlr::GetModifierName() const {
return modifierName;
}
void APSysCtlr::SetModifierName( string value ) {
modifierName = value;
}
...@@ -33,6 +33,12 @@ public: ...@@ -33,6 +33,12 @@ public:
virtual list<NiObjectRef> GetRefs() const; virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const; virtual const Type & GetType() const;
/*!
* Refers to modifier block by its name?
*/
string GetModifierName() const;
void SetModifierName( string value );
protected: protected:
A_P_SYS_CTLR_MEMBERS A_P_SYS_CTLR_MEMBERS
STANDARD_INTERNAL_METHODS STANDARD_INTERNAL_METHODS
......
...@@ -37,8 +37,9 @@ const Type & BSXFlags::GetType() const { ...@@ -37,8 +37,9 @@ const Type & BSXFlags::GetType() const {
uint BSXFlags::GetFlags() const { uint BSXFlags::GetFlags() const {
return flags; return flags;
}; }
void BSXFlags::SetFlags( uint value ) {
flags = value;
}
void BSXFlags::SetFlags( uint n ) {
flags = n;
};
...@@ -33,8 +33,11 @@ public: ...@@ -33,8 +33,11 @@ public:
virtual list<NiObjectRef> GetRefs() const; virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const; virtual const Type & GetType() const;
/*!
* The flags.
*/
uint GetFlags() const; uint GetFlags() const;
void SetFlags( uint n ); void SetFlags( uint value );
protected: protected:
B_S_X_FLAGS_MEMBERS B_S_X_FLAGS_MEMBERS
......
...@@ -7,6 +7,7 @@ All rights reserved. Please see niflib.h for licence. */ ...@@ -7,6 +7,7 @@ All rights reserved. Please see niflib.h for licence. */
#include "NiLight.h" #include "NiLight.h"
namespace Niflib { namespace Niflib {
#include "../gen/obj_defines.h" #include "../gen/obj_defines.h"
class NiAmbientLight; class NiAmbientLight;
......
...@@ -7,6 +7,7 @@ All rights reserved. Please see niflib.h for licence. */ ...@@ -7,6 +7,7 @@ All rights reserved. Please see niflib.h for licence. */
#include "NiBSplineInterpolator.h" #include "NiBSplineInterpolator.h"
namespace Niflib { namespace Niflib {
#include "../gen/obj_defines.h" #include "../gen/obj_defines.h"
class NiBSplineCompFloatInterpolator; class NiBSplineCompFloatInterpolator;
......
...@@ -37,3 +37,11 @@ const Type & NiBSplineCompPoint3Interpolator::GetType() const { ...@@ -37,3 +37,11 @@ const Type & NiBSplineCompPoint3Interpolator::GetType() const {
return TYPE; return TYPE;
}; };
Ref<NiBSplineData > NiBSplineCompPoint3Interpolator::GetData() const {
return data;
}
void NiBSplineCompPoint3Interpolator::SetData( Ref<NiBSplineData > value ) {
data = value;
}
...@@ -39,6 +39,12 @@ public: ...@@ -39,6 +39,12 @@ public:
virtual list<NiObjectRef> GetRefs() const; virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const; virtual const Type & GetType() const;
/*!
* Refers to NiBSplineData.
*/
Ref<NiBSplineData > GetData() const;
void SetData( Ref<NiBSplineData > value );
protected: protected:
NI_B_SPLINE_COMP_POINT3_INTERPOLATOR_MEMBERS NI_B_SPLINE_COMP_POINT3_INTERPOLATOR_MEMBERS
STANDARD_INTERNAL_METHODS STANDARD_INTERNAL_METHODS
......
...@@ -37,3 +37,19 @@ const Type & NiBSplineCompTransformInterpolator::GetType() const { ...@@ -37,3 +37,19 @@ const Type & NiBSplineCompTransformInterpolator::GetType() const {
return TYPE; return TYPE;
}; };
Ref<NiBSplineData > NiBSplineCompTransformInterpolator::GetData() const {
return data;
}
void NiBSplineCompTransformInterpolator::SetData( Ref<NiBSplineData > value ) {
data = value;
}
Ref<NiBSplineBasisData > NiBSplineCompTransformInterpolator::GetBasisData() const {
return basisData;
}
void NiBSplineCompTransformInterpolator::SetBasisData( Ref<NiBSplineBasisData > value ) {
basisData = value;
}
...@@ -39,6 +39,18 @@ public: ...@@ -39,6 +39,18 @@ public:
virtual list<NiObjectRef> GetRefs() const; virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const; virtual const Type & GetType() const;
/*!
* Refers to NiBSplineData.
*/
Ref<NiBSplineData > GetData() const;
void SetData( Ref<NiBSplineData > value );
/*!
* Refers to NiBSPlineBasisData.
*/
Ref<NiBSplineBasisData > GetBasisData() const;
void SetBasisData( Ref<NiBSplineBasisData > value );
protected: protected:
NI_B_SPLINE_COMP_TRANSFORM_INTERPOLATOR_MEMBERS NI_B_SPLINE_COMP_TRANSFORM_INTERPOLATOR_MEMBERS
STANDARD_INTERNAL_METHODS STANDARD_INTERNAL_METHODS
......
...@@ -35,3 +35,19 @@ const Type & NiBSplineInterpolator::GetType() const { ...@@ -35,3 +35,19 @@ const Type & NiBSplineInterpolator::GetType() const {
return TYPE; return TYPE;
}; };
float NiBSplineInterpolator::GetStartTime() const {
return startTime;
}
void NiBSplineInterpolator::SetStartTime( float value ) {
startTime = value;
}
float NiBSplineInterpolator::GetStopTime() const {
return stopTime;
}
void NiBSplineInterpolator::SetStopTime( float value ) {
stopTime = value;
}
...@@ -33,6 +33,18 @@ public: ...@@ -33,6 +33,18 @@ public:
virtual list<NiObjectRef> GetRefs() const; virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const; virtual const Type & GetType() const;
/*!
* Animation start time.
*/
float GetStartTime() const;
void SetStartTime( float value );
/*!
* Animation stop time.
*/
float GetStopTime() const;
void SetStopTime( float value );
protected: protected:
NI_B_SPLINE_INTERPOLATOR_MEMBERS NI_B_SPLINE_INTERPOLATOR_MEMBERS
STANDARD_INTERNAL_METHODS STANDARD_INTERNAL_METHODS
......
...@@ -35,3 +35,11 @@ const Type & NiBillboardNode::GetType() const { ...@@ -35,3 +35,11 @@ const Type & NiBillboardNode::GetType() const {
return TYPE; return TYPE;
}; };
ushort NiBillboardNode::GetBillboardMode() const {
return billboardMode;
}
void NiBillboardNode::SetBillboardMode( ushort value ) {
billboardMode = value;
}
...@@ -34,6 +34,13 @@ public: ...@@ -34,6 +34,13 @@ public:
virtual list<NiObjectRef> GetRefs() const; virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const; virtual const Type & GetType() const;
/*!
* 0: ALWAYS_FACE_CAMERA 1: ROTATE_ABOUT_UP 2: RIGID_FACE_CAMERA 3:
* ALWAYS_FACE_CENTER 4: RIGID_FACE_CENTER
*/
ushort GetBillboardMode() const;
void SetBillboardMode( ushort value );
protected: protected:
NI_BILLBOARD_NODE_MEMBERS NI_BILLBOARD_NODE_MEMBERS
STANDARD_INTERNAL_METHODS STANDARD_INTERNAL_METHODS
......
...@@ -35,3 +35,11 @@ const Type & NiBlendBoolInterpolator::GetType() const { ...@@ -35,3 +35,11 @@ const Type & NiBlendBoolInterpolator::GetType() const {
return TYPE; return TYPE;
}; };
byte NiBlendBoolInterpolator::GetBoolValue() const {
return boolValue;
}
void NiBlendBoolInterpolator::SetBoolValue( byte value ) {
boolValue = value;
}
...@@ -33,6 +33,12 @@ public: ...@@ -33,6 +33,12 @@ public:
virtual list<NiObjectRef> GetRefs() const; virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const; virtual const Type & GetType() const;
/*!
* The interpolated bool?
*/
byte GetBoolValue() const;
void SetBoolValue( byte value );
protected: protected:
NI_BLEND_BOOL_INTERPOLATOR_MEMBERS NI_BLEND_BOOL_INTERPOLATOR_MEMBERS
STANDARD_INTERNAL_METHODS STANDARD_INTERNAL_METHODS
......
...@@ -35,3 +35,11 @@ const Type & NiBlendFloatInterpolator::GetType() const { ...@@ -35,3 +35,11 @@ const Type & NiBlendFloatInterpolator::GetType() const {
return TYPE; return TYPE;
}; };
float NiBlendFloatInterpolator::GetFloatValue() const {
return floatValue;
}
void NiBlendFloatInterpolator::SetFloatValue( float value ) {
floatValue = value;
}
...@@ -33,6 +33,12 @@ public: ...@@ -33,6 +33,12 @@ public:
virtual list<NiObjectRef> GetRefs() const; virtual list<NiObjectRef> GetRefs() const;
virtual const Type & GetType() const; virtual const Type & GetType() const;
/*!
* The interpolated float?
*/
float GetFloatValue() const;
void SetFloatValue( float value );
protected: protected:
NI_BLEND_FLOAT_INTERPOLATOR_MEMBERS NI_BLEND_FLOAT_INTERPOLATOR_MEMBERS
STANDARD_INTERNAL_METHODS STANDARD_INTERNAL_METHODS
......
...@@ -7,6 +7,7 @@ All rights reserved. Please see niflib.h for licence. */ ...@@ -7,6 +7,7 @@ All rights reserved. Please see niflib.h for licence. */
#include "NiInterpolator.h" #include "NiInterpolator.h"
namespace Niflib { namespace Niflib {
#include "../gen/obj_defines.h" #include "../gen/obj_defines.h"
class NiBlendInterpolator; class NiBlendInterpolator;
......
...@@ -35,3 +35,11 @@ const Type & NiBlendPoint3Interpolator::GetType() const { ...@@ -35,3 +35,11 @@ const Type & NiBlendPoint3Interpolator::GetType() const {
return TYPE; return TYPE;
}; };
Vector3 NiBlendPoint3Interpolator::GetPointValue() const {
return pointValue;
}
void NiBlendPoint3Interpolator::SetPointValue( Vector3 value ) {
pointValue = value;
}
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