mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
33 lines
753 B
C#
33 lines
753 B
C#
using System;
|
|
|
|
namespace UnityEngine.TestTools
|
|
{
|
|
/// <summary>
|
|
/// A flag indicating the targeted test platforms.
|
|
/// </summary>
|
|
[Flags]
|
|
[Serializable]
|
|
public enum TestPlatform : byte
|
|
{
|
|
/// <summary>
|
|
/// Both platforms.
|
|
/// </summary>
|
|
All = 0xFF,
|
|
/// <summary>
|
|
/// The EditMode test platform.
|
|
/// </summary>
|
|
EditMode = 1 << 1,
|
|
/// <summary>
|
|
/// The PlayMode test platform.
|
|
/// </summary>
|
|
PlayMode = 1 << 2
|
|
}
|
|
|
|
internal static class TestPlatformEnumExtensions
|
|
{
|
|
public static bool IsFlagIncluded(this TestPlatform flags, TestPlatform flag)
|
|
{
|
|
return (flags & flag) == flag;
|
|
}
|
|
}
|
|
}
|