1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-02-06 15:24:55 +08:00

More strongly typed namespaces to prevent import conflicts

This commit is contained in:
Thor 2017-12-18 10:37:02 +01:00
parent 2291531ceb
commit 66de07e1a7
9 changed files with 1 additions and 11 deletions

View File

@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using XNode;
namespace XNodeEditor {
/// <summary> Base class to derive custom Node editors from. Use this to create your own custom inspectors and editors for your nodes. </summary>

View File

@ -1,7 +1,6 @@
using System;
using UnityEditor;
using UnityEngine;
using XNode;
namespace XNodeEditor {
public partial class NodeEditorWindow {

View File

@ -1,6 +1,5 @@
using UnityEditor;
using UnityEngine;
using XNode;
namespace XNodeEditor {
public class NodeEditorAssetModProcessor : UnityEditor.AssetModificationProcessor {

View File

@ -4,8 +4,6 @@ using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
using UnityEditor;
using XNode;
using XNodeEditor;
namespace XNodeInternal {
/// <summary> Handles caching of custom editor classes and their target types. Accessible with GetEditor(Type type) </summary>
@ -36,7 +34,7 @@ namespace XNodeInternal {
editors = new Dictionary<Type, T>();
//Get all classes deriving from NodeEditor via reflection
Type[] nodeEditors = NodeEditorWindow.GetDerivedTypes(typeof(T));
Type[] nodeEditors = XNodeEditor.NodeEditorWindow.GetDerivedTypes(typeof(T));
for (int i = 0; i < nodeEditors.Length; i++) {
var attribs = nodeEditors[i].GetCustomAttributes(typeof(A), false);
if (attribs == null || attribs.Length == 0) continue;

View File

@ -2,7 +2,6 @@
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using XNode;
namespace XNodeEditor {
/// <summary> Contains GUI methods </summary>

View File

@ -2,7 +2,6 @@
using System.Reflection;
using UnityEditor;
using UnityEngine;
using XNode;
namespace XNodeEditor {
/// <summary> UNEC-specific version of <see cref="EditorGUILayout"/> </summary>

View File

@ -5,7 +5,6 @@ using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEngine;
using XNode;
namespace XNodeEditor {
/// <summary> Contains reflection-related info </summary>

View File

@ -2,7 +2,6 @@
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;
using XNode;
namespace XNodeEditor {
[InitializeOnLoad]

View File

@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using XNode;
namespace XNodeEditor {
/// <summary> Base class to derive custom Node Graph editors from. Use this to override how graphs are drawn in the editor. </summary>