commit x64 compilation from lulu cause the other branch dont seems to compile properly at home
This commit is contained in:
26
include/engine/scene3d/mitem_scripted_object.cpp
Normal file
26
include/engine/scene3d/mitem_scripted_object.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
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;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user