/* -----------------------------------------------------------------------------
	GSFramework
	Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */


#ifndef	__NMITEMSCRIPTEDOBJECT__
#define	__NMITEMSCRIPTEDOBJECT__


		#include "script/scripted_object.h"


namespace GS {
	namespace S3D {
		class MItem;

/*!
	@short	Managed item scripted object.
	@author	Emmanuel Julien (ejulien@nworks.fr)
*/
class	MItemScriptedObject : public Script::ScriptedObject
{
		MItem		*item;

public:

virtual	Script::Unit *NewUnit() const;

		MItemScriptedObject(MItem *i, Script::IVM *vm = 0) : Script::ScriptedObject(vm), item(i) {}
};

	} // S3D
} // GS


#endif	// __NMITEMSCRIPTEDOBJECT__
