Table of Contents

Class ResourcesLoader

Namespace
ProjectL.Data
Assembly
Assembly-CSharp.dll
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 Puzzle

The ProjectLCore.GamePieces.Puzzle object containing the puzzle number and color information.

type PuzzleSpriteType

The type of sprite to load.

result Sprite

When this methods succeeds, contains the loaded sprite; or null on failure.

Returns

bool

true if the sprite was found; otherwise, false.

TryGetTetrominoSprite(TetrominoShape, out Sprite?)

Retrieves the tetromino sprite for the given shape.

public static bool TryGetTetrominoSprite(TetrominoShape shape, out Sprite? result)

Parameters

shape TetrominoShape

The shape of the tetromino.

result Sprite

When this methods succeeds, contains the loaded sprite; or null on failure.

Returns

bool

true if the sprite was found; otherwise, false.

TryReadPuzzleFile(out string)

Reads the contents of the puzzle configuration file.

public static bool TryReadPuzzleFile(out string result)

Parameters

result string

When this methods succeeds, contains the read text; or Empty on failure.

Returns

bool

true if the file was found; otherwise, false.