mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Removed trigger zone component
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user