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:
parent
2291531ceb
commit
66de07e1a7
@ -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>
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using XNode;
|
||||
|
||||
namespace XNodeEditor {
|
||||
public partial class NodeEditorWindow {
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using XNode;
|
||||
|
||||
namespace XNodeEditor {
|
||||
public class NodeEditorAssetModProcessor : UnityEditor.AssetModificationProcessor {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using XNode;
|
||||
|
||||
namespace XNodeEditor {
|
||||
/// <summary> Contains GUI methods </summary>
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
using System.Reflection;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using XNode;
|
||||
|
||||
namespace XNodeEditor {
|
||||
/// <summary> UNEC-specific version of <see cref="EditorGUILayout"/> </summary>
|
||||
|
||||
@ -5,7 +5,6 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using XNode;
|
||||
|
||||
namespace XNodeEditor {
|
||||
/// <summary> Contains reflection-related info </summary>
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
using UnityEngine;
|
||||
using XNode;
|
||||
|
||||
namespace XNodeEditor {
|
||||
[InitializeOnLoad]
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user