Exemplo n.º 1
0
        public TView LoadView(int index, TData data)
        {
            var view = pool.Get(data);

            view.indexInModel = index;
            //Debug.Log($"loading view {view.GetInstanceID()} at index {index}");
            var i = index - firstLoadedIndex;

            loadedViews.Insert(i, view);
            //Debug.Log($"loading {view.GetHashCode()} at {index}");
            showAction?.Invoke(data, view);
            return(view);
        }
Exemplo n.º 2
0
 public TView Get(TData data)
 {
     return(viewPoolImplementation.Get(map(data)));
 }