From 892723c5015dd3e60b34bdaa86808980de02b7a8 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 9 Jan 2022 17:46:37 +0100 Subject: [PATCH] Fix build --- Source/Engine/Content/Storage/FlaxStorage.h | 1 + Source/Engine/Level/Level.cpp | 2 ++ Source/Engine/Serialization/WriteStream.h | 18 ------------------ 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/Source/Engine/Content/Storage/FlaxStorage.h b/Source/Engine/Content/Storage/FlaxStorage.h index 85a88fee0..798a9d53a 100644 --- a/Source/Engine/Content/Storage/FlaxStorage.h +++ b/Source/Engine/Content/Storage/FlaxStorage.h @@ -6,6 +6,7 @@ #include "Engine/Core/Delegate.h" #include "Engine/Core/Types/String.h" #include "Engine/Core/Types/DateTime.h" +#include "Engine/Core/Collections/Array.h" #include "Engine/Platform/CriticalSection.h" #include "Engine/Serialization/FileReadStream.h" #include "Engine/Threading/ThreadLocal.h" diff --git a/Source/Engine/Level/Level.cpp b/Source/Engine/Level/Level.cpp index 009404cbc..496dc2519 100644 --- a/Source/Engine/Level/Level.cpp +++ b/Source/Engine/Level/Level.cpp @@ -143,9 +143,11 @@ Delegate Level::SceneLoaded; Delegate Level::SceneLoadError; Delegate Level::SceneUnloading; Delegate Level::SceneUnloaded; +#if USE_EDITOR Action Level::ScriptsReloadStart; Action Level::ScriptsReload; Action Level::ScriptsReloadEnd; +#endif Array Level::Tags; String Level::Layers[32]; diff --git a/Source/Engine/Serialization/WriteStream.h b/Source/Engine/Serialization/WriteStream.h index 43bda26e4..1bc4ee692 100644 --- a/Source/Engine/Serialization/WriteStream.h +++ b/Source/Engine/Serialization/WriteStream.h @@ -154,24 +154,6 @@ public: WriteBytes((const void*)text, sizeof(Char) * length); } - template - void WriteTextFormatted(const char* format, const Args& ... args) - { - fmt_flax::allocator_ansi allocator; - fmt_flax::memory_buffer_ansi buffer(allocator); - fmt_flax::format(buffer, format, args...); - WriteText(buffer.data(), (int32)buffer.size()); - } - - template - void WriteTextFormatted(const Char* format, const Args& ... args) - { - fmt_flax::allocator allocator; - fmt_flax::memory_buffer buffer(allocator); - fmt_flax::format(buffer, format, args...); - WriteText(buffer.data(), (int32)buffer.size()); - } - // Write UTF BOM character sequence void WriteBOM() {