public void Load() { All.Class.Error.DelMoreError(DateTime.Now.AddDays(-5)); All.Class.Log.DelMoreLog(DateTime.Now.AddDays(-5)); ErrorShow.Load(); AllPlaySet.Load(); LocalSet.Load(); LocalSingleFlush.Load(); }
public override string ToString() { var items = new List <string>(); items.Add(nameof(SetJump)); items.Add(nameof(Type)); items.Add(Type.ToString()); items.Add(nameof(World)); items.Add(Constants.WorldIds[World].ToUpper()); items.Add(nameof(Area)); items.Add(Area.ToString()); items.Add(nameof(Entrance)); items.Add(Entrance.ToString()); items.Add(nameof(LocalSet)); items.Add(LocalSet.ToString()); items.Add(nameof(FadeType)); items.Add(FadeType.ToString()); return(string.Join(" ", items)); }
public ReadOnlyCollection <TLocal> OnlyInLocalSet() { //FieldInfo liveKeyField = LiveSet[ 0 ].GetType().GetField( LiveSetKey ); PropertyInfo localKeyField = LocalSet[0].GetType().GetProperty(this.LocalSetKey); //Type liveKeyType = liveKeyField.GetType(); //Type localKeyType = localKeyField.GetType(); ////Debug.Assert( liveKeyType == localKeyType ); //var liveSetKeys = LiveSet.Select( k => liveKeyField.GetValue( k ) ).ToList(); //var localSetKeys = LocalSet.Select( k => localKeyField.GetValue( k ) ).ToList(); var diffKeys = this.LocalSetKeys.Except(this.LiveSetKeys).ToList(); ReadOnlyCollection <TLocal> onlyInLocal = LocalSet .Where(k => diffKeys.Contains(localKeyField.GetValue(k))) .ToList() .AsReadOnly(); return(onlyInLocal); }