mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
F scripts
This commit is contained in:
parent
c050d2b9a1
commit
6bb1917d4c
@ -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
|
||||
|
@ -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.
|
||||
|
@ -2,7 +2,6 @@
|
||||
#include "MovingPlatformComponent.h"
|
||||
#include "GameMessages.h"
|
||||
|
||||
|
||||
void FallingTile::OnStartup(Entity* self)
|
||||
{
|
||||
auto* movingPlatfromComponent = self->GetComponent<MovingPlatformComponent>();
|
||||
|
@ -1,5 +1,4 @@
|
||||
#include "FlameJetServer.h"
|
||||
|
||||
#include "SkillComponent.h"
|
||||
#include "GameMessages.h"
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user