Files
XRLib/Assets/Scripts/SHI/modal/TreeListItemData.cs
2025-11-27 13:41:37 +09:00

30 lines
820 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace SHI.Modal
{
// 클래스 이름을 통일하고, 자식 리스트 타입을 수정했습니다.
public class TreeListItemData
{
public int id = 0;
public string name = string.Empty;
public string option = string.Empty;
public bool isExpanded = false;
public bool isSelected = false;
// 재귀적 구조를 위해 타입 통일
public TreeListItemData parent;
public List<TreeListItemData> children = new List<TreeListItemData>();
public bool IsVisible = true;
public string ExternalKey = string.Empty;
public void Add(TreeListItemData child)
{
child.parent = this;
children.Add(child);
}
}
}