diff --git a/Source/Engine/Content/Deprecated.h b/Source/Engine/Content/Deprecated.h index 92cd3aa44..bb4a6fa40 100644 --- a/Source/Engine/Content/Deprecated.h +++ b/Source/Engine/Content/Deprecated.h @@ -6,14 +6,16 @@ #if USE_EDITOR -// Utility for marking content as deprecated when loading it in Editor. Used to auto-upgrade (by resaving) data during development in editor or during game cooking. -class FLAXENGINE_API ContentDeprecated +// Editor-only utility for marking content as deprecated during load. Used to auto-upgrade (by resaving) data during development in editor or during game cooking. +API_CLASS(Static) class FLAXENGINE_API ContentDeprecated { + DECLARE_SCRIPTING_TYPE_MINIMAL(ContentDeprecated); + public: // Marks content as deprecated (for the current thread). - static void Mark(); + API_FUNCTION() static void Mark(); // Reads and clears deprecation flag (for the current thread). - static bool Clear(bool newValue = false); + API_FUNCTION() static bool Clear(bool newValue = false); }; // Marks content as deprecated (for the current thread).