mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-26 15:37:20 +00:00
I scripts
Removing extraneous includes from scripts that start with the letter I
This commit is contained in:
parent
3defd51441
commit
e3264e545b
@ -1,7 +1,6 @@
|
|||||||
#include "ImaginationShrineServer.h"
|
#include "ImaginationShrineServer.h"
|
||||||
#include "RebuildComponent.h"
|
#include "RebuildComponent.h"
|
||||||
|
|
||||||
|
|
||||||
void ImaginationShrineServer::OnUse(Entity* self, Entity* user)
|
void ImaginationShrineServer::OnUse(Entity* self, Entity* user)
|
||||||
{
|
{
|
||||||
// If the rebuild component is complete, use the shrine
|
// If the rebuild component is complete, use the shrine
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#include "EntityManager.h"
|
#include "EntityManager.h"
|
||||||
#include "GameMessages.h"
|
#include "GameMessages.h"
|
||||||
#include "MissionComponent.h"
|
#include "MissionComponent.h"
|
||||||
#include "dLogger.h"
|
|
||||||
#include "InventoryComponent.h"
|
#include "InventoryComponent.h"
|
||||||
|
|
||||||
int32_t ImgBrickConsoleQB::ResetBricks = 30;
|
int32_t ImgBrickConsoleQB::ResetBricks = 30;
|
||||||
@ -198,8 +197,6 @@ void ImgBrickConsoleQB::OnDie(Entity* self, Entity* killer)
|
|||||||
|
|
||||||
self->SetVar(u"Died", true);
|
self->SetVar(u"Died", true);
|
||||||
|
|
||||||
Game::logger->Log("ImgBrickConsoleQB", "On Die...\n");
|
|
||||||
|
|
||||||
auto* rebuildComponent = self->GetComponent<RebuildComponent>();
|
auto* rebuildComponent = self->GetComponent<RebuildComponent>();
|
||||||
|
|
||||||
if (rebuildComponent->GetState() == REBUILD_COMPLETED)
|
if (rebuildComponent->GetState() == REBUILD_COMPLETED)
|
||||||
@ -267,16 +264,12 @@ void ImgBrickConsoleQB::OnDie(Entity* self, Entity* killer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
self->SetNetworkVar(u"used", false);
|
self->SetNetworkVar(u"used", false);
|
||||||
|
|
||||||
Game::logger->Log("ImgBrickConsoleQB", "Died...\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImgBrickConsoleQB::OnTimerDone(Entity* self, std::string timerName)
|
void ImgBrickConsoleQB::OnTimerDone(Entity* self, std::string timerName)
|
||||||
{
|
{
|
||||||
if (timerName == "reset")
|
if (timerName == "reset")
|
||||||
{
|
{
|
||||||
Game::logger->Log("ImgBrickConsoleQB", "Resetting...\n");
|
|
||||||
|
|
||||||
auto* rebuildComponent = self->GetComponent<RebuildComponent>();
|
auto* rebuildComponent = self->GetComponent<RebuildComponent>();
|
||||||
|
|
||||||
if (rebuildComponent->GetState() == REBUILD_OPEN)
|
if (rebuildComponent->GetState() == REBUILD_OPEN)
|
||||||
@ -286,8 +279,6 @@ void ImgBrickConsoleQB::OnTimerDone(Entity* self, std::string timerName)
|
|||||||
}
|
}
|
||||||
else if (timerName == "Die")
|
else if (timerName == "Die")
|
||||||
{
|
{
|
||||||
Game::logger->Log("ImgBrickConsoleQB", "Die...\n");
|
|
||||||
|
|
||||||
const auto consoles = EntityManager::Instance()->GetEntitiesInGroup("Console");
|
const auto consoles = EntityManager::Instance()->GetEntitiesInGroup("Console");
|
||||||
|
|
||||||
for (auto* console : consoles)
|
for (auto* console : consoles)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "CppScripts.h"
|
#include "CppScripts.h"
|
||||||
#include <map>
|
|
||||||
|
|
||||||
class ImgBrickConsoleQB : public CppScripts::Script
|
class ImgBrickConsoleQB : public CppScripts::Script
|
||||||
{
|
{
|
||||||
|
@ -2,13 +2,10 @@
|
|||||||
#include "GameMessages.h"
|
#include "GameMessages.h"
|
||||||
#include "Player.h"
|
#include "Player.h"
|
||||||
#include "Character.h"
|
#include "Character.h"
|
||||||
#include "dLogger.h"
|
|
||||||
#include "dServer.h"
|
#include "dServer.h"
|
||||||
|
|
||||||
void InstanceExitTransferPlayerToLastNonInstance::OnUse(Entity* self, Entity* user)
|
void InstanceExitTransferPlayerToLastNonInstance::OnUse(Entity* self, Entity* user)
|
||||||
{
|
{
|
||||||
Game::logger->Log("Instance", "OnUse\n");
|
|
||||||
|
|
||||||
auto transferText = self->GetVar<std::u16string>(u"transferText");
|
auto transferText = self->GetVar<std::u16string>(u"transferText");
|
||||||
if (transferText.empty())
|
if (transferText.empty())
|
||||||
transferText = u"DRAGON_EXIT_QUESTION";
|
transferText = u"DRAGON_EXIT_QUESTION";
|
||||||
|
Loading…
Reference in New Issue
Block a user