commit x64 compilation from lulu cause the other branch dont seems to compile properly at home
This commit is contained in:
34
include/engine/project/project_script.cpp
Normal file
34
include/engine/project/project_script.cpp
Normal file
@ -0,0 +1,34 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#include "project/project.h"
|
||||
#include "script/script_variant.h"
|
||||
#include "script/script_vm.h"
|
||||
|
||||
using namespace GS::Core;
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
void Project::UpdateScriptClock()
|
||||
{
|
||||
vm->Set("g_dt_frame", clock->GetDeltaf());
|
||||
vm->Set("g_clock", (float)clock->Get());
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool Project::CompileRootScripts()
|
||||
{
|
||||
if (!vm)
|
||||
return false;
|
||||
|
||||
ListForeach(String, p, root_script_list)
|
||||
if (!vm->CompileFile(p.Object()))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user