First commit
This commit is contained in:
17
Editor/Contracts/IExposedPropertyTypeManager.cs
Normal file
17
Editor/Contracts/IExposedPropertyTypeManager.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Misaki.GraphView.Editor
|
||||
{
|
||||
public interface IExposedPropertyTypeManager
|
||||
{
|
||||
public void AddPropertyType<T, TV>() where T : ExposedProperty;
|
||||
public void AddPropertyType(Type type, Type valueType);
|
||||
|
||||
public void RemovePropertyType<T>();
|
||||
public void RemovePropertyType(Type type);
|
||||
|
||||
public ReadOnlyDictionary<Type, Type> GetPropertyTypes();
|
||||
}
|
||||
}
|
||||
3
Editor/Contracts/IExposedPropertyTypeManager.cs.meta
Normal file
3
Editor/Contracts/IExposedPropertyTypeManager.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3fdc5b0b94324ad8adfef75c151cfac7
|
||||
timeCreated: 1730455540
|
||||
13
Editor/Contracts/IInspectable.cs
Normal file
13
Editor/Contracts/IInspectable.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Misaki.GraphView.Editor
|
||||
{
|
||||
public interface IInspectable
|
||||
{
|
||||
public Action<IInspectable> OnItemSelected { get; set; }
|
||||
|
||||
public string InspectorName { get; }
|
||||
public VisualElement CreateInspector();
|
||||
}
|
||||
}
|
||||
3
Editor/Contracts/IInspectable.cs.meta
Normal file
3
Editor/Contracts/IInspectable.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0dcd2ace03ad48d4b45023a42d088708
|
||||
timeCreated: 1730456345
|
||||
11
Editor/Contracts/IPortColorManager.cs
Normal file
11
Editor/Contracts/IPortColorManager.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Misaki.GraphView.Editor
|
||||
{
|
||||
public interface IPortColorManager
|
||||
{
|
||||
public void SetColor<T>(Color color);
|
||||
public bool TryGetColor(Type valueType, out Color color);
|
||||
}
|
||||
}
|
||||
3
Editor/Contracts/IPortColorManager.cs.meta
Normal file
3
Editor/Contracts/IPortColorManager.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f8c9a927a4e64d02a08b45d491bac200
|
||||
timeCreated: 1730123769
|
||||
11
Editor/Contracts/IPortContainer.cs
Normal file
11
Editor/Contracts/IPortContainer.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor.Experimental.GraphView;
|
||||
|
||||
namespace Misaki.GraphView.Editor
|
||||
{
|
||||
public interface IPortContainer
|
||||
{
|
||||
public List<Port> InputPorts { get; }
|
||||
public List<Port> OutputPorts { get; }
|
||||
}
|
||||
}
|
||||
3
Editor/Contracts/IPortContainer.cs.meta
Normal file
3
Editor/Contracts/IPortContainer.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e73aa7e15754fcca95d518c7936a80f
|
||||
timeCreated: 1730524683
|
||||
Reference in New Issue
Block a user