50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
#nullable enable
|
|
using Gpm.Ui;
|
|
using System;
|
|
using UVC.Factory.Component;
|
|
|
|
namespace UVC.UI.List.ComponentList
|
|
{
|
|
public class ComponentListItemData : InfiniteScrollData
|
|
{
|
|
/// <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;
|
|
}
|
|
}
|