// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. #pragma once #include "Plugin.h" #include "Engine/Core/Collections/Array.h" /// /// Base class for all plugins used at runtime in game. /// API_CLASS(Abstract) class FLAXENGINE_API GamePlugin : public Plugin { DECLARE_SCRIPTING_TYPE(GamePlugin); public: #if USE_EDITOR /// /// Function called during game cooking in Editor to collect any assets that this plugin uses. Can be used to inject content for plugins. /// /// The result assets list. API_FUNCTION() virtual Array GetReferences() const { return Array(); } #endif };