UnityExplorer/src/CacheObject/CacheEnumerated.cs
sinaioutlander 8949e3dc7d Revert "some early steps remaking the GUI with UnityEngine.UI, working in all tested game so far"
This reverts commit 4280a071f61ff0bdff713f7fb9970ee972af08a9.
2020-10-23 01:48:18 +11:00

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();
}
}
}