(ContentFolder targetLocation)
| 49 | |
| 50 | /// <inheritdoc /> |
| 51 | public override bool CanCreate(ContentFolder targetLocation) |
| 52 | { |
| 53 | if (targetLocation.CanHaveScripts) |
| 54 | { |
| 55 | var path = targetLocation.Path; |
| 56 | var projects = Editor.Instance.GameProject.GetAllProjects(); |
| 57 | foreach (var project in projects) |
| 58 | { |
| 59 | var projectSourceFolderPath = StringUtils.CombinePaths(project.ProjectFolderPath, "Source"); |
| 60 | if (path == projectSourceFolderPath) |
| 61 | return false; |
| 62 | if (path.StartsWith(projectSourceFolderPath)) |
| 63 | return true; |
| 64 | } |
| 65 | } |
| 66 | return false; |
| 67 | } |
| 68 | |
| 69 | /// <inheritdoc /> |
| 70 | public override bool IsFileNameValid(string filename) |
nothing calls this directly
no test coverage detected