/* ----------------------------------------------------------------------------- GSFramework Copyright 2001-2013 Emmanuel Julien. All Rights Reserved. ----------------------------------------------------------------------------- */ #include "scene3d/mitem_scripted_object.h" #include "scene3d/mitem_script_unit.h" #include "scene3d/mitem.h" #include "script/script_engine_types.h" #include "log/log.h" using namespace GS::S3D; using namespace GS::Script; //------------------------------------------------------------------------------ Unit *MItemScriptedObject::NewUnit() const { Unit *unit = new MItemScriptUnit(vm); if (!unit) __ERR__(__LOG_E__ << "Failed to allocate new scene script unit.", NULL); unit->SetInterfaceObject(item, typetag_Item); return unit; } //------------------------------------------------------------------------------