From 9a9048bcd8fd906eece2cf7399cb91b3096488e8 Mon Sep 17 00:00:00 2001 From: Sinai Date: Fri, 16 Apr 2021 02:53:17 +1000 Subject: [PATCH] Add CreateCell to ICell interface --- src/UI/Widgets/InfiniteScroll/IListDataSource.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/UI/Widgets/InfiniteScroll/IListDataSource.cs b/src/UI/Widgets/InfiniteScroll/IListDataSource.cs index 24be284..65edf5c 100644 --- a/src/UI/Widgets/InfiniteScroll/IListDataSource.cs +++ b/src/UI/Widgets/InfiniteScroll/IListDataSource.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using UnityEngine; namespace UnityExplorer.UI.Widgets.InfiniteScroll { @@ -10,5 +11,7 @@ namespace UnityExplorer.UI.Widgets.InfiniteScroll int ItemCount { get; } void SetCell(ICell cell, int index); + + ICell CreateCell(RectTransform cellTransform); } }