commit x64 compilation from lulu cause the other branch dont seems to compile properly at home
This commit is contained in:
32
include/engine/ui/ui_script_unit.cpp
Normal file
32
include/engine/ui/ui_script_unit.cpp
Normal file
@ -0,0 +1,32 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#include "ui/ui_script_unit.h"
|
||||
|
||||
using namespace GS::Script;
|
||||
using namespace GS::S2D;
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool SceneUnit::Open()
|
||||
{
|
||||
if (!Unit::Open())
|
||||
return false;
|
||||
|
||||
frame_callback = vm->GetObjectFromName("OnUpdate", self);
|
||||
return true;
|
||||
}
|
||||
void SceneUnit::Close()
|
||||
{
|
||||
frame_callback = NULL;
|
||||
Unit::Close();
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
SceneUnit::SceneUnit(IVM *vm) : Unit(vm) {}
|
||||
SceneUnit::~SceneUnit() { Close(); }
|
||||
//------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user