forked from alelievr/NodeGraphProcessor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseStackNode.cs
More file actions
40 lines (35 loc) · 1.14 KB
/
Copy pathBaseStackNode.cs
File metadata and controls
40 lines (35 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using UnityEngine;
using System.Collections.Generic;
namespace GraphProcessor
{
/// <summary>
/// Data container for the StackNode views
/// </summary>
[System.Serializable]
public class BaseStackNode
{
public Vector2 position;
public string title = "New Stack";
/// <summary>
/// Is the stack accept drag and dropped nodes
/// </summary>
public bool acceptDrop;
/// <summary>
/// Is the stack accepting node created by pressing space over the stack node
/// </summary>
public bool acceptNewNode;
/// <summary>
/// List of node GUID that are in the stack
/// </summary>
/// <typeparam name="string"></typeparam>
/// <returns></returns>
public List< string > nodeGUIDs = new List< string >();
public BaseStackNode(Vector2 position, string title = "Stack", bool acceptDrop = true, bool acceptNewNode = true)
{
this.position = position;
this.title = title;
this.acceptDrop = acceptDrop;
this.acceptNewNode = acceptNewNode;
}
}
}