mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 06:08:16 +08:00
27 lines
705 B
C#
27 lines
705 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Explorer.UI;
|
|
|
|
namespace Explorer.CacheObject
|
|
{
|
|
public class CacheEnumerated : CacheObjectBase
|
|
{
|
|
public int Index { get; set; }
|
|
public IList RefIList { get; set; }
|
|
public InteractiveEnumerable ParentEnumeration { get; set; }
|
|
|
|
public override bool CanWrite => RefIList != null && ParentEnumeration.OwnerCacheObject.CanWrite;
|
|
|
|
public override void SetValue()
|
|
{
|
|
RefIList[Index] = IValue.Value;
|
|
ParentEnumeration.Value = RefIList;
|
|
|
|
ParentEnumeration.OwnerCacheObject.SetValue();
|
|
}
|
|
}
|
|
}
|