commit x64 compilation from lulu cause the other branch dont seems to compile properly at home

This commit is contained in:
2026-07-17 16:08:20 +02:00
parent c0f3eeb00d
commit 0efa4ee6f7
625 changed files with 117283 additions and 4426 deletions

View File

@ -0,0 +1,40 @@
/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#include "ui/ui_scene_script_event.h"
#include "ui/ui_script_unit.h"
#include "ui/ui.h"
#include "script/scripted_object.h"
using namespace GS::S2D;
//------------------------------------------------------------------------------
void SceneScriptEvent::OnSetup(Scene *scene)
{
ListForeachPtr(Script::Unit *, unit, scene->scripted_object->GetUnitList())
if (unit->SetupFunctionCall("OnSetup"))
unit->DoFunctionCall(0);
}
void SceneScriptEvent::OnReset(Scene *scene)
{
ListForeachPtr(Script::Unit *, unit, scene->scripted_object->GetUnitList())
if (unit->SetupFunctionCall("OnReset"))
unit->DoFunctionCall(0);
}
void SceneScriptEvent::OnUpdate(Scene *scene)
{
ListForeachPtr(Script::Unit *, unit, scene->scripted_object->GetUnitList())
if (unit->SetupFunctionCall("OnUpdate", ((SceneUnit *)unit)->frame_callback))
unit->DoFunctionCall(0);
}
void SceneScriptEvent::OnDelete(Scene *scene)
{
ListForeachPtr(Script::Unit *, unit, scene->scripted_object->GetUnitList())
if (unit->SetupFunctionCall("OnDelete"))
unit->DoFunctionCall(0);
}
//------------------------------------------------------------------------------