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


#ifndef	__UIITEMSCRIPTEDOBJECT__
#define	__UIITEMSCRIPTEDOBJECT__


		#include "script/scripted_object.h"


namespace GS {
	namespace S2D {
		class Item;

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

public:

virtual	Script::Unit *NewUnit() const;

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

	} // S2D
} // GS


#endif	// __UIITEMSCRIPTEDOBJECT__
