F scripts

This commit is contained in:
EmosewaMC 2022-06-22 23:19:40 -07:00
parent c050d2b9a1
commit 6bb1917d4c
5 changed files with 1 additions and 14 deletions

View File

@ -1,9 +1,7 @@
#include "EnemySpiderSpawner.h"
#include "GameMessages.h"
#include "SimplePhysicsComponent.h"
#include "EntityManager.h"
#include "DestroyableComponent.h"
#include "MovementAIComponent.h"
//----------------------------------------------
//--Initiate egg hatching on call

View File

@ -1,9 +1,7 @@
#include "ExplodingAsset.h"
#include "DestroyableComponent.h"
#include "GameMessages.h"
#include "MissionComponent.h"
#include "MissionTaskType.h"
#include "SkillComponent.h"
//TODO: this has to be updated so that you only get killed if you're in a certain radius.

View File

@ -2,7 +2,6 @@
#include "MovingPlatformComponent.h"
#include "GameMessages.h"
void FallingTile::OnStartup(Entity* self)
{
auto* movingPlatfromComponent = self->GetComponent<MovingPlatformComponent>();

View File

@ -1,5 +1,4 @@
#include "FlameJetServer.h"
#include "SkillComponent.h"
#include "GameMessages.h"

View File

@ -1,19 +1,12 @@
#include "ForceVolumeServer.h"
#include "PhantomPhysicsComponent.h"
#include "EntityManager.h"
#include "dLogger.h"
void ForceVolumeServer::OnStartup(Entity* self)
{
auto* phantomPhysicsComponent = self->GetComponent<PhantomPhysicsComponent>();
if (phantomPhysicsComponent == nullptr)
{
Game::logger->Log("ForceVolumeServer", "Failed to find PhantomPhysicsComponent\n");
return;
}
if (phantomPhysicsComponent == nullptr) return;
const auto forceAmount = self->GetVar<float>(u"ForceAmt");
const auto forceX = self->GetVar<float>(u"ForceX");