2019-12-22 20:04:07 +00:00
|
|
|
#include "Runtime/GameObjectLists.hpp"
|
|
|
|
|
|
|
|
#include "Runtime/Camera/CGameCamera.hpp"
|
|
|
|
#include "Runtime/World/CGameLight.hpp"
|
|
|
|
#include "Runtime/World/CPatterned.hpp"
|
|
|
|
#include "Runtime/World/CScriptAiJumpPoint.hpp"
|
|
|
|
#include "Runtime/World/CScriptCoverPoint.hpp"
|
|
|
|
#include "Runtime/World/CScriptDoor.hpp"
|
|
|
|
#include "Runtime/World/CScriptPlatform.hpp"
|
|
|
|
|
2019-09-21 13:07:13 +00:00
|
|
|
#include "TCastTo.hpp" // Generated file, do not modify include path
|
2016-04-16 21:49:47 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2016-04-16 21:49:47 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CActorList::CActorList() : CObjectList(EGameObjectList::Actor) {}
|
2016-10-01 19:00:16 +00:00
|
|
|
|
2020-04-17 17:29:20 +00:00
|
|
|
bool CActorList::IsQualified(const CEntity& ent) const { return TCastToConstPtr<CActor>(ent).IsValid(); }
|
2016-04-16 21:49:47 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CPhysicsActorList::CPhysicsActorList() : CObjectList(EGameObjectList::PhysicsActor) {}
|
2016-10-01 19:00:16 +00:00
|
|
|
|
2020-04-17 17:29:20 +00:00
|
|
|
bool CPhysicsActorList::IsQualified(const CEntity& ent) const { return TCastToConstPtr<CPhysicsActor>(ent).IsValid(); }
|
2016-04-16 21:49:47 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CGameCameraList::CGameCameraList() : CObjectList(EGameObjectList::GameCamera) {}
|
2016-10-01 19:00:16 +00:00
|
|
|
|
2020-04-17 17:29:20 +00:00
|
|
|
bool CGameCameraList::IsQualified(const CEntity& ent) const { return TCastToConstPtr<CGameCamera>(ent).IsValid(); }
|
2016-04-16 21:49:47 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CListeningAiList::CListeningAiList() : CObjectList(EGameObjectList::ListeningAi) {}
|
2016-10-01 19:00:16 +00:00
|
|
|
|
2020-03-06 09:36:24 +00:00
|
|
|
bool CListeningAiList::IsQualified(const CEntity& ent) const {
|
|
|
|
const TCastToConstPtr<CAi> ai(ent);
|
2018-12-08 05:30:43 +00:00
|
|
|
return ai && ai->IsListening();
|
2016-10-01 19:00:16 +00:00
|
|
|
}
|
2016-04-16 21:49:47 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CAiWaypointList::CAiWaypointList() : CObjectList(EGameObjectList::AiWaypoint) {}
|
2016-10-01 19:00:16 +00:00
|
|
|
|
2020-03-06 09:36:24 +00:00
|
|
|
bool CAiWaypointList::IsQualified(const CEntity& ent) const {
|
2018-12-08 05:30:43 +00:00
|
|
|
return TCastToConstPtr<CScriptCoverPoint>(ent) || TCastToConstPtr<CScriptAiJumpPoint>(ent);
|
2016-10-01 19:00:16 +00:00
|
|
|
}
|
2016-04-16 21:49:47 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CPlatformAndDoorList::CPlatformAndDoorList() : CObjectList(EGameObjectList::PlatformAndDoor) {}
|
2016-10-01 19:00:16 +00:00
|
|
|
|
2020-03-06 09:36:24 +00:00
|
|
|
bool CPlatformAndDoorList::IsQualified(const CEntity& ent) const { return IsDoor(ent) || IsPlatform(ent); }
|
2016-10-01 19:00:16 +00:00
|
|
|
|
2020-04-17 17:29:20 +00:00
|
|
|
bool CPlatformAndDoorList::IsDoor(const CEntity& ent) const { return TCastToConstPtr<CScriptDoor>(ent).IsValid(); }
|
2016-10-01 19:00:16 +00:00
|
|
|
|
2020-04-17 17:29:20 +00:00
|
|
|
bool CPlatformAndDoorList::IsPlatform(const CEntity& ent) const {
|
|
|
|
return TCastToConstPtr<CScriptPlatform>(ent).IsValid();
|
|
|
|
}
|
2016-04-16 21:49:47 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CGameLightList::CGameLightList() : CObjectList(EGameObjectList::GameLight) {}
|
2016-10-01 19:00:16 +00:00
|
|
|
|
2020-04-17 17:29:20 +00:00
|
|
|
bool CGameLightList::IsQualified(const CEntity& lt) const { return TCastToConstPtr<CGameLight>(lt).IsValid(); }
|
2016-04-16 21:49:47 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|