31 lines
918 B
C#
31 lines
918 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Assets.Sources.Core.DataBinding;
|
|
using uMVVM.Sources.Infrastructure;
|
|
|
|
namespace Game.MVVM.Model
|
|
{
|
|
public class HallSceneMallViewModel : ViewModelBase
|
|
{
|
|
public readonly ObservableList<MallScrollItem> MallItems = new ObservableList<MallScrollItem>();
|
|
public readonly ObservableList<MallStoreItem> StoreItems = new ObservableList<MallStoreItem>();
|
|
public Action OnClickBack;
|
|
|
|
public override void OnStartReveal()
|
|
{
|
|
base.OnStartReveal();
|
|
// this.MallItems.Value = this.mallList;
|
|
// this.StoreItems.Value = this.storeList;
|
|
}
|
|
|
|
public void SetMallItem(List<MallScrollItem> items)
|
|
{
|
|
this.MallItems.Value = items;
|
|
}
|
|
|
|
public void SetStoreItem(List<MallStoreItem> items)
|
|
{
|
|
this.StoreItems.Value = items;
|
|
}
|
|
}
|
|
} |