RewardManagerGetUpgradeOptions Method

Gets the shapes the player can get in exchange for the given shape by using a ChangeTetrominoAction.

Definition

Namespace: ProjectLCore.GameManagers
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public static List<TetrominoShape> GetUpgradeOptions(
	IReadOnlyList<int> numTetrominosLeft,
	TetrominoShape shape
)

Parameters

numTetrominosLeft  IReadOnlyListInt32
Contains information about how many tetrominos are left in the shared reserve. numTetrominosLeft[shape] gives information about (TetrominoShape)shape.
shape  TetrominoShape
The shape the player wants to trade.

Return Value

ListTetrominoShape
A list of shapes with level(shape) <= level(oldShape)+1. If there are no shapes with level(oldShape)+1 available, the player can choose from the next available level.

Exceptions

ArgumentExceptionInvalid numTetrominosLeft length

See Also