Add to be able to specify order of plugin initialization and deinitialization.

This commit is contained in:
Chandler Cox
2023-10-22 21:58:20 -05:00
parent 21f2e59d12
commit fbaf14b6fa
2 changed files with 473 additions and 28 deletions

View File

@@ -0,0 +1,21 @@
using System;
namespace FlaxEngine;
/// <summary>
/// This attribute allows for specifying initialization and deinitialization order for plugins
/// </summary>
[Serializable]
[AttributeUsage(AttributeTargets.Class)]
public class PluginLoadOrderAttribute : Attribute
{
/// <summary>
/// The plugin type to initialize this plugin after.
/// </summary>
public Type InitializeAfter;
/// <summary>
/// The plugin type to deinitialize this plugin before.
/// </summary>
public Type DeinitializeBefore;
}