/
TON618OFF
/
Unity-Project-RTU
Обзор
Документация
Войти
/
TON618OFF
/
Unity-Project-RTU
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Library/PackageCache/com.unity.test-framework@1.1.33/UnityEngine.TestRunner/TestRunner/TestPlatform.cs
33 строки
753 B
TON618OFF
release
03 окт 2024, 22:20
03 окт 2024, 22:20
7c70e9f
Код
Авторство
О чём код?
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; } } }