コード例 #1
0
ファイル: WinConditions.cs プロジェクト: Zeludon/FEZ
 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;
 }
コード例 #2
0
ファイル: WinConditions.cs プロジェクト: conankzhang/fez
 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);
     }
 }
コード例 #3
0
ファイル: WinConditions.cs プロジェクト: conankzhang/fez
 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);
 }
コード例 #4
0
ファイル: WinConditions.cs プロジェクト: Zeludon/FEZ
 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);
 }
コード例 #5
0
ファイル: MapNode.cs プロジェクト: Zeludon/FEZ
 public MapNode()
 {
   this.Conditions = new WinConditions();
 }
コード例 #6
0
 public MapNode()
 {
     this.Conditions = new WinConditions();
 }
コード例 #7
0
ファイル: SaveFileOperations.cs プロジェクト: Zeludon/FEZ
 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;
 }
コード例 #8
0
ファイル: SaveFileOperations.cs プロジェクト: Zeludon/FEZ
 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);
 }