Class ResourcesLoader
public static class ResourcesLoader
- Inheritance
-
ResourcesLoader
- Inherited Members
Methods
TryGetPuzzleSprite(Puzzle, PuzzleSpriteType, out Sprite?)
Retrieves the puzzle sprite based on the specified puzzle and sprite type.
public static bool TryGetPuzzleSprite(Puzzle puzzle, PuzzleSpriteType type, out Sprite? result)
Parameters
puzzle
PuzzleThe ProjectLCore.GamePieces.Puzzle object containing the puzzle number and color information.
type
PuzzleSpriteTypeThe type of sprite to load.
result
SpriteWhen this methods succeeds, contains the loaded sprite; or null on failure.
Returns
TryGetTetrominoSprite(TetrominoShape, out Sprite?)
Retrieves the tetromino sprite for the given shape.
public static bool TryGetTetrominoSprite(TetrominoShape shape, out Sprite? result)
Parameters
shape
TetrominoShapeThe shape of the tetromino.
result
SpriteWhen this methods succeeds, contains the loaded sprite; or null on failure.
Returns
TryReadPuzzleFile(out string)
Reads the contents of the puzzle configuration file.
public static bool TryReadPuzzleFile(out string result)