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


#ifndef	__UIITEMSCRIPTUNIT__
#define	__UIITEMSCRIPTUNIT__


		#include "script/script_unit.h"
		#include "script/script_object.h"
		#include "memory/nauto_ptr.h"


namespace GS {
	namespace S2D {

/*!
	@short	UI item script unit.
	@author	Emmanuel Julien (ejulien@gsworks.fr)
*/
struct	ItemScriptUnit : public Script::Unit
{
		AutoPtr <Script::Object>
				update_callback,
				trigger_callback,
				activation_callback,
				physic_callback,
				physic_sleep_callback,
				collision_callback,
				collisionex_callback,
				render_user_callback;

		bool	Open();
		void	Close();

		ItemScriptUnit(Script::IVM *);
		~ItemScriptUnit();
};

	} // S2D
} // GS


#endif	// __UIITEMSCRIPTUNIT__
