Files
Nicolas Musset 41381dedd5 refactor: Nullable and Modernization for Core projects (#2643)
* [Core.Mathematics] Modernize code

* [Core.Mathematics] Add tests to Stride.Tests.Simple

* [Core] Cleanup some code

* [Core.CompilerServices] Cleanup some code

* [Core.CompilerServices] Add tests to Stride.Tests.Simple

* [Core.IO] Modernize code

* [Core.MicroThreading] Modernize code

* [Core.Serialization] Modernize code

* [Core.AssemblyProcessor.Tests] Modernize code

* [Core.CompilerServices.Tests] Modernize code

* [Core.Mathematics.Tests] Modernize code

* [Core.Tests] Modernize code

* [Core.Translation] Modernize code

* [Core.Reflection] Modernize code

* Fixes build of Stride.VisualStudio.sln

* [Core.Yaml.Tests] Modernize code

* [Core.Design] Modernize code

* [Core.Design.Tests] Modernize code

* [Core.Mathematics] More annotations

* Fix build of projects that import code from Core.Design

Especially those targeting .NET Framework
2025-02-22 16:50:47 +01:00

35 lines
974 B
C#

// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp)
// Distributed under the MIT license. See the LICENSE.md file in the project root for more information.
namespace Stride.Core.MicroThreading;
[Flags]
public enum ScriptFlags
{
/// <summary>
/// Empty value.
/// </summary>
None = 0,
/// <summary>
/// Automatically run on assembly startup.
/// </summary>
AssemblyStartup = 1,
/// <summary>
/// Automatically run on assembly first startup (not executed if assembly is reloaded).
/// </summary>
AssemblyFirstStartup = 2,
/// <summary>
/// Automatically run on assembly unload.
/// </summary>
AssemblyUnload = 4,
// TODO: Not implemented yet
/// <summary>
/// MicroThread won't be killed if assembly is unloaded (including reload).
/// </summary>
KeepAliveWhenUnload = 8,
}