text: /* Copyright (c) 2006, NIF File Format Library and Tools
  All rights reserved.  Please see niflib.h for license. */
  
  //-----------------------------------NOTICE----------------------------------//
  // Some of this file is automatically filled in by a Python script.  Only    //
  // add custom code in the designated areas or it will be overwritten during  //
  // the next update.                                                          //
  //-----------------------------------NOTICE----------------------------------//
  
  //--BEGIN FILE HEAD CUSTOM CODE--//
  //--END CUSTOM CODE--//
  
  #include "../../include/FixLink.h"
  #include "../../include/ObjectRegistry.h"
  #include "../../include/NIF_IO.h"
  #include "../../include/obj/NiBlendInterpolator.h"
  using namespace Niflib;
  
  //Definition of TYPE constant
  const Type NiBlendInterpolator::TYPE("NiBlendInterpolator", &NiInterpolator::TYPE );
  
  NiBlendInterpolator::NiBlendInterpolator() : unknownShort((unsigned short)0), unknownInt((unsigned int)0) {
  	//--BEGIN CONSTRUCTOR CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  NiBlendInterpolator::~NiBlendInterpolator() {
  	//--BEGIN DESTRUCTOR CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  const Type & NiBlendInterpolator::GetType() const {
  	return TYPE;
  }
  
  NiObject * NiBlendInterpolator::Create() {
  	return new NiBlendInterpolator;
  }
  
  void NiBlendInterpolator::Read( istream& in, list<unsigned int> & link_stack, const NifInfo & info ) {
  	//--BEGIN PRE-READ CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  
  	NiInterpolator::Read( in, link_stack, info );
  	NifStream( unknownShort, in, info );
  	NifStream( unknownInt, in, info );
  
  	//--BEGIN POST-READ CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  void NiBlendInterpolator::Write( ostream& out, const map<NiObjectRef,unsigned int> & link_map, list<NiObject *> & missing_link_stack, const NifInfo & info ) const {
  	//--BEGIN PRE-WRITE CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  
  	NiInterpolator::Write( out, link_map, missing_link_stack, info );
  	NifStream( unknownShort, out, info );
  	NifStream( unknownInt, out, info );
  
  	//--BEGIN POST-WRITE CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  std::string NiBlendInterpolator::asString( bool verbose ) const {
  	//--BEGIN PRE-STRING CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  
  	stringstream out;
  	out << NiInterpolator::asString();
  	out << "  Unknown Short:  " << unknownShort << endl;
  	out << "  Unknown Int:  " << unknownInt << endl;
  	return out.str();
  
  	//--BEGIN POST-STRING CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  void NiBlendInterpolator::FixLinks( const map<unsigned int,NiObjectRef> & objects, list<unsigned int> & link_stack, list<NiObjectRef> & missing_link_stack, const NifInfo & info ) {
  	//--BEGIN PRE-FIXLINKS CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  
  	NiInterpolator::FixLinks( objects, link_stack, missing_link_stack, info );
  
  	//--BEGIN POST-FIXLINKS CUSTOM CODE--//
  	//--END CUSTOM CODE--//
  }
  
  std::list<NiObjectRef> NiBlendInterpolator::GetRefs() const {
  	list<Ref<NiObject> > refs;
  	refs = NiInterpolator::GetRefs();
  	return refs;
  }
  
  std::list<NiObject *> NiBlendInterpolator::GetPtrs() const {
  	list<NiObject *> ptrs;
  	ptrs = NiInterpolator::GetPtrs();
  	return ptrs;
  }
  
  //--BEGIN MISC CUSTOM CODE--//
  //--END CUSTOM CODE--//
  