[TASK] Initial commit with basic product setup

This commit is contained in:
2019-08-18 13:50:14 +02:00
commit 01a66a8e1f
2548 changed files with 167528 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
namespace Mapbox.Editor
{
using System;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public class TreeElement
{
[SerializeField] int m_ID;
[SerializeField] string m_Name;
[SerializeField] int m_Depth;
[NonSerialized] TreeElement m_Parent;
[NonSerialized] List<TreeElement> m_Children;
public int depth
{
get { return m_Depth; }
set { m_Depth = value; }
}
public TreeElement parent
{
get { return m_Parent; }
set { m_Parent = value; }
}
public List<TreeElement> children
{
get { return m_Children; }
set { m_Children = value; }
}
public bool hasChildren
{
get { return children != null && children.Count > 0; }
}
public string name
{
get { return m_Name; } set { m_Name = value; }
}
public int id
{
get { return m_ID; } set { m_ID = value; }
}
public TreeElement ()
{
}
public TreeElement (string name, int depth, int id)
{
m_Name = name;
m_ID = id;
m_Depth = depth;
}
}
}