public bool Fullfills(WinConditions wonditions) { if (this.UnlockedDoorCount >= wonditions.UnlockedDoorCount && this.LockedDoorCount >= wonditions.LockedDoorCount && (this.ChestCount >= wonditions.ChestCount && this.CubeShardCount >= wonditions.CubeShardCount) && (this.OtherCollectibleCount >= wonditions.OtherCollectibleCount && this.SplitUpCount >= wonditions.SplitUpCount && this.SecretCount >= wonditions.SecretCount)) return Enumerable.All<int>((IEnumerable<int>) wonditions.ScriptIds, (Func<int, bool>) (x => this.ScriptIds.Contains(x))); else return false; }
public bool Fullfills(WinConditions wonditions) { if (this.UnlockedDoorCount >= wonditions.UnlockedDoorCount && this.LockedDoorCount >= wonditions.LockedDoorCount && (this.ChestCount >= wonditions.ChestCount && this.CubeShardCount >= wonditions.CubeShardCount) && (this.OtherCollectibleCount >= wonditions.OtherCollectibleCount && this.SplitUpCount >= wonditions.SplitUpCount && this.SecretCount >= wonditions.SecretCount)) { return(Enumerable.All <int>((IEnumerable <int>)wonditions.ScriptIds, (Func <int, bool>)(x => this.ScriptIds.Contains(x)))); } else { return(false); } }
public void CloneInto(WinConditions w) { w.LockedDoorCount = this.LockedDoorCount; w.UnlockedDoorCount = this.UnlockedDoorCount; w.ChestCount = this.ChestCount; w.CubeShardCount = this.CubeShardCount; w.OtherCollectibleCount = this.OtherCollectibleCount; w.SplitUpCount = this.SplitUpCount; w.SecretCount = this.SecretCount; w.ScriptIds.Clear(); w.ScriptIds.AddRange((IEnumerable <int>) this.ScriptIds); }
public void CloneInto(WinConditions w) { w.LockedDoorCount = this.LockedDoorCount; w.UnlockedDoorCount = this.UnlockedDoorCount; w.ChestCount = this.ChestCount; w.CubeShardCount = this.CubeShardCount; w.OtherCollectibleCount = this.OtherCollectibleCount; w.SplitUpCount = this.SplitUpCount; w.SecretCount = this.SecretCount; w.ScriptIds.Clear(); w.ScriptIds.AddRange((IEnumerable<int>) this.ScriptIds); }
public MapNode() { this.Conditions = new WinConditions(); }
public MapNode() { this.Conditions = new WinConditions(); }
public static WinConditions ReadWonditions(CrcReader r) { WinConditions winConditions = new WinConditions(); winConditions.LockedDoorCount = r.ReadInt32(); winConditions.UnlockedDoorCount = r.ReadInt32(); winConditions.ChestCount = r.ReadInt32(); winConditions.CubeShardCount = r.ReadInt32(); winConditions.OtherCollectibleCount = r.ReadInt32(); winConditions.SplitUpCount = r.ReadInt32(); int num; winConditions.ScriptIds = new List<int>(num = r.ReadInt32()); for (int index = 0; index < num; ++index) winConditions.ScriptIds.Add(r.ReadInt32()); winConditions.SecretCount = r.ReadInt32(); return winConditions; }
public static void Write(CrcWriter w, WinConditions wc) { w.Write(wc.LockedDoorCount); w.Write(wc.UnlockedDoorCount); w.Write(wc.ChestCount); w.Write(wc.CubeShardCount); w.Write(wc.OtherCollectibleCount); w.Write(wc.SplitUpCount); w.Write(wc.ScriptIds.Count); foreach (int num in wc.ScriptIds) w.Write(num); w.Write(wc.SecretCount); }