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


#ifndef	__UISCENESCRIPTUNIT__
#define	__UISCENESCRIPTUNIT__


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


namespace GS {
	namespace S2D {

/*!
	@short	UI scene script unit.
	@author	Emmanuel Julien (ejulien@nworks.fr)
*/
struct	SceneUnit : public Script::Unit
{
		AutoPtr <Script::Object> frame_callback;

		bool		Open();
		void		Close();

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

	} // S2D
} // GS


#endif	// __UISCENESCRIPTUNIT__
