コード例 #1
0
ファイル: StackIO.cs プロジェクト: stratts/Industropolis-Sim
 public bool TryGetStack(out StackEntry stack)
 {
     if (HasStack())
     {
         stack = GetStack();
         return(true);
     }
     stack = default(StackEntry);
     return(false);
 }
コード例 #2
0
ファイル: StackIO.cs プロジェクト: stratts/Industropolis-Sim
 public bool MoveNext()
 {
     if (_reader.HasStack())
     {
         Current = _reader.GetStack();
         return(true);
     }
     else
     {
         return(false);
     }
 }
コード例 #3
0
ファイル: StackIO.cs プロジェクト: stratts/Industropolis-Sim
 public Enumerator(StackReader reader)
 {
     Current = default(StackEntry);
     _reader = reader;
 }