mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 09:28:06 +00:00
Resolved some more comments
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
#include "ServerPreconditions.hpp"
|
||||
#include "ServerPreconditions.h"
|
||||
|
||||
#include "tinyxml2.h"
|
||||
|
||||
using namespace ServerPreconditions;
|
||||
|
||||
std::unordered_map<LOT, std::vector<std::pair<bool, PreconditionExpression>>> ServerPreconditions::m_Preconditions;
|
||||
namespace {
|
||||
std::unordered_map<LOT, std::vector<std::pair<bool, PreconditionExpression>>> m_Preconditions;
|
||||
|
||||
std::unordered_map<LWOOBJID, LWOOBJID> ServerPreconditions::m_SoloActors;
|
||||
std::unordered_map<LWOOBJID, LWOOBJID> m_SoloActors;
|
||||
|
||||
std::unordered_map<LWOOBJID, std::unordered_set<LWOOBJID>> ServerPreconditions::m_ExcludeForPlayer;
|
||||
std::unordered_map<LWOOBJID, std::unordered_set<LWOOBJID>> m_ExcludeForPlayer;
|
||||
}
|
||||
|
||||
void ServerPreconditions::LoadPreconditions(std::string file) {
|
||||
tinyxml2::XMLDocument doc;
|
||||
|
@@ -15,12 +15,6 @@ class Entity;
|
||||
namespace ServerPreconditions
|
||||
{
|
||||
|
||||
extern std::unordered_map<LOT, std::vector<std::pair<bool, PreconditionExpression>>> m_Preconditions;
|
||||
|
||||
extern std::unordered_map<LWOOBJID, LWOOBJID> m_SoloActors;
|
||||
|
||||
extern std::unordered_map<LWOOBJID, std::unordered_set<LWOOBJID>> m_ExcludeForPlayer;
|
||||
|
||||
/**
|
||||
* @brief Loads the preconditions from the given file.
|
||||
*
|
@@ -87,7 +87,7 @@
|
||||
#include "CDZoneTableTable.h"
|
||||
|
||||
#include "Recorder.h"
|
||||
#include "ServerPreconditions.hpp"
|
||||
#include "ServerPreconditions.h"
|
||||
#include "Prefab.h"
|
||||
#include "Scene.h"
|
||||
|
||||
@@ -953,7 +953,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
|
||||
if (record) {
|
||||
record->Act(actor);
|
||||
} else {
|
||||
Game::logger->Log("SlashCommandHandler", "Failed to get recorder for objectID: %llu", entity->GetObjectID());
|
||||
LOG("Failed to get recorder for objectID: %llu", entity->GetObjectID());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -981,7 +981,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Game::logger->Log("SlashCommandHandler", "Failed to get recorder for objectID: %llu", entity->GetObjectID());
|
||||
LOG("Failed to get recorder for objectID: %llu", entity->GetObjectID());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -995,7 +995,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
|
||||
if (record) {
|
||||
record->SaveToFile(args[0]);
|
||||
} else {
|
||||
Game::logger->Log("SlashCommandHandler", "Failed to get recorder for objectID: %llu", entity->GetObjectID());
|
||||
LOG("Failed to get recorder for objectID: %llu", entity->GetObjectID());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1005,7 +1005,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
|
||||
if (record) {
|
||||
Cinema::Recording::Recorder::AddRecording(entity->GetObjectID(), record);
|
||||
} else {
|
||||
Game::logger->Log("SlashCommandHandler", "Failed to load recording from file: %s", args[0].c_str());
|
||||
LOG("Failed to load recording from file: %s", args[0].c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user