暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ICustomScriptAssembly.cs 1.1KB

12345678910111213141516171819202122232425
  1. using System;
  2. using UnityEditor.Scripting.ScriptCompilation;
  3. namespace UnityEditor.TestTools.TestRunner.GUI.TestAssets
  4. {
  5. /// <summary>
  6. /// Provides a wrapper for a Custom Script Assembly and exposes its basic properties.
  7. /// </summary>
  8. internal interface ICustomScriptAssembly
  9. {
  10. /// <summary>
  11. /// Checks if the Custom Script Assembly is referencing the provided precompiled library.
  12. /// </summary>
  13. /// <param name="libraryFilename">The name of the precompiled library reference to be checked.</param>
  14. /// <returns>True if the assembly references the provided precompiled library; false otherwise.</returns>
  15. bool HasPrecompiledReference(string libraryFilename);
  16. /// <summary>
  17. /// Checks if the Custom Script Assembly has the provided <see cref="AssemblyFlags" /> value set.
  18. /// </summary>
  19. /// <param name="flag">The <see cref="AssemblyFlags" /> value to check against.</param>
  20. /// <returns>True if the provided <paramref name="flag" /> value is set; false otherwise.</returns>
  21. bool HasAssemblyFlag(AssemblyFlags flag);
  22. }
  23. }