Removed trigger zone component

This commit is contained in:
WiggleWizard
2024-09-13 23:54:43 +01:00
parent aed98dd648
commit dabd9c01a6
4 changed files with 0 additions and 33 deletions

View File

@@ -1,26 +0,0 @@
#pragma once
#include <vector>
namespace Nuake
{
class TriggerZone
{
public:
std::string target = "";
std::vector<Entity> Targets;
bool Enabled = true;
TriggerZone()
{
Targets = std::vector<Entity>();
}
std::vector<Entity> GetTargets()
{
return Targets;
}
};
}

View File

@@ -11,7 +11,6 @@
#include <src/Scene/Components/CharacterControllerComponent.h>
#include <src/Scene/Components/QuakeMap.h>
#include <src/Scene/Components/BSPBrushComponent.h>
#include <src/Scene/Components/TriggerZone.h>
#include <src/Scene/Components/CylinderColliderComponent.h>
namespace Nuake

View File

@@ -22,7 +22,6 @@ extern "C" {
#include "src/Scene/Components/TransformComponent.h"
#include "src/Scene/Components/LightComponent.h"
#include "src/Scene/Components/NameComponent.h"
#include "src/Scene/Components/TriggerZone.h"
#include "src/Resource/FGD/FGDClass.h"
#include "src/Scene/Components/WrenScriptComponent.h"
#include "src/Scene/Components/PrefabComponent.h"

View File

@@ -19,7 +19,6 @@
#include <src/Scene/Components/RigidbodyComponent.h>
#include <src/Scene/Components/CharacterControllerComponent.h>
#include <src/Scene/Components/WrenScriptComponent.h>
#include <src/Scene/Components/TriggerZone.h>
#include <src/Scene/Components/BSPBrushComponent.h>
#include <src/Scene/Components/PrefabComponent.h>
#include <src/Scene/Components/AudioEmitterComponent.h>
@@ -406,8 +405,6 @@ namespace Nuake
double handle = wrenGetSlotDouble(vm, 1);
Entity ent = Entity((entt::entity)handle, Engine::GetCurrentScene().get());
TriggerZone trigger = ent.GetComponent<TriggerZone>();
int count = 0;
wrenSetSlotDouble(vm, 0, count);
@@ -418,8 +415,6 @@ namespace Nuake
double handle = wrenGetSlotDouble(vm, 1);
Entity ent = Entity((entt::entity)handle, Engine::GetCurrentScene().get());
TriggerZone trigger = ent.GetComponent<TriggerZone>();
std::vector<Entity> entities = {};
wrenEnsureSlots(vm, static_cast<int>(entities.size()));