commit x64 compilation from lulu cause the other branch dont seems to compile properly at home
This commit is contained in:
29
include/engine/scene3d/scene_trigger.cpp
Normal file
29
include/engine/scene3d/scene_trigger.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#include "scene3d/scene.h"
|
||||
#include "scene3d/mtrigger.h"
|
||||
|
||||
using namespace GS::S3D;
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
void Scene::UpdateTriggers()
|
||||
{
|
||||
ListForeachPtr(MTrigger *, t, trigger_list)
|
||||
if (t->isActive())
|
||||
{
|
||||
t->ReadyItemList();
|
||||
|
||||
ArrayListForeachPtr(MItem *, i, active_list)
|
||||
if (i->mitem_flags.IsSet(MItem::Flag_TriggerDetected)) // TODO make a dedicated list.
|
||||
if (i->isActive() && t->IsInside(i->GetBaseItem()->GetMatrix().GetRow(3)))
|
||||
t->MarkItem(i->GetBaseItem());
|
||||
|
||||
t->PurgeItemList();
|
||||
}
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user