GameStateCreateFromFileT Method
Initializes a new instance of the
GameState class from a file containing puzzles.
Namespace: ProjectLCore.GameLogicAssembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
public static GameState CreateFromFile<T>(
string puzzlesFilePath,
int numInitialTetrominos = 15,
int numWhitePuzzles = 2147483647,
int numBlackPuzzles = 2147483647
)
where T : Puzzle
- puzzlesFilePath String
- The puzzles file path.
- numInitialTetrominos Int32 (Optional)
- The number initial tetrominos.
- numWhitePuzzles Int32 (Optional)
- The resulting GameState will contain numWhitePuzzles random puzzles from the file. This number can exceed the number of puzzles in the file. Should be at least NumPuzzlesInRow.
- numBlackPuzzles Int32 (Optional)
- The resulting GameState will contain numBlackPuzzles random puzzles from the file. This number can exceed the number of puzzles in the file. Should be at least NumPuzzlesInRow + 1.
- T
- The type of the puzzle. Must be a subclass of Puzzle and have a constructor with the signature Puzzle(BinaryImage, Int32, TetrominoShape, Boolean, UInt32)
GameStateInitialized
GameState.