Files
XRLib/Assets/Scripts/UVC/UI/List/ComponentList/ComponentListItemData.cs

50 lines
1.3 KiB
C#
Raw Normal View History

2025-08-08 18:33:29 +09:00
#nullable enable
using Gpm.Ui;
2025-08-11 14:58:18 +09:00
using System;
2025-08-08 18:33:29 +09:00
using UVC.Factory.Component;
2025-08-11 18:30:13 +09:00
namespace UVC.UI.List.ComponentList
2025-08-08 18:33:29 +09:00
{
public class ComponentListItemData : InfiniteScrollData
{
2025-08-11 14:58:18 +09:00
/// <summary>
/// 카테고리 아이템인지 여부
/// </summary>
public bool isCategory = false;
/// <summary>
/// 카테고리 이름
/// </summary>
public string categoryName = string.Empty;
/// <summary>
/// 카테고리 배지 개수
/// </summary>
public int categoryBadgeCount = 0;
/// <summary>
/// 일반 아이템 이름
/// </summary>
public string generalName = string.Empty;
/// <summary>
/// 일반 아이템 옵션
/// </summary>
public string generalOption = string.Empty;
/// <summary>
/// 팩토리 객체 정보
/// </summary>
public FactoryObjectInfo? factoryObjectInfo = null;
internal bool isExpanded = true; // 카테고리가 확장되었는지 여부
/// <summary>
/// 카테고리 확장/축소 버튼 클릭 시 호출될 액션입니다.
/// ComponentList에서 이 액션에 ToggleCategory 메서드를 할당합니다.
/// </summary>
public Action<ComponentListItemData>? OnCategoryExpendAction;
2025-08-08 18:33:29 +09:00
}
}