26 lines
851 B
C++
26 lines
851 B
C++
/* -----------------------------------------------------------------------------
|
|
GSFramework
|
|
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
|
----------------------------------------------------------------------------- */
|
|
|
|
|
|
#include "ui/ui_scene_scripted_object.h"
|
|
#include "ui/ui_script_unit.h"
|
|
#include "script/script_engine_types.h"
|
|
#include "log/log.h"
|
|
|
|
using namespace GS;
|
|
using namespace GS::S2D;
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
Script::Unit *SceneScriptedObject::NewUnit() const
|
|
{
|
|
Script::Unit *unit = new SceneUnit(vm);
|
|
if (!unit)
|
|
__ERR__(__LOG_E__ << "Failed to allocate new UI scene script unit.", NULL);
|
|
unit->SetInterfaceObject(scene, Script::typetag_Scene2d);
|
|
return unit;
|
|
}
|
|
//------------------------------------------------------------------------------
|