commit x64 compilation from lulu cause the other branch dont seems to compile properly at home
This commit is contained in:
27
include/engine/ui/ui_item_scripted_object.cpp
Normal file
27
include/engine/ui/ui_item_scripted_object.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#include "ui/ui_item_scripted_object.h"
|
||||
#include "ui/ui_item_script_unit.h"
|
||||
#include "ui/ui_item.h"
|
||||
#include "script/script_engine_types.h"
|
||||
#include "log/log.h"
|
||||
|
||||
using namespace GS::Script;
|
||||
using namespace GS::S2D;
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
Unit *ItemScriptedObject::NewUnit() const
|
||||
{
|
||||
Unit *unit = new ItemScriptUnit(vm);
|
||||
if (!unit)
|
||||
__ERR__(__LOG_E__ << "Failed to allocate new item script unit.", NULL);
|
||||
|
||||
unit->SetInterfaceObject(item, Script::typetag_UIItem);
|
||||
return unit;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user