PlayerRepository

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addBalance(uuid: UUID, amount: ULong): RepositoryResult<Unit>

指定された UUID のプレイヤーに所持金を追加します.

Link copied to clipboard

指定された UUID のプレイヤーに経験値を追加します.

Link copied to clipboard

プレイヤーデータを新規作成します.

Link copied to clipboard

指定された UUID にマッチするプレイヤーデータが存在するかどうか確認します.

Link copied to clipboard

指定された UUID にマッチするプレイヤーデータを検索します.

Link copied to clipboard

指定された UUID のプレイヤーの所持金を取得します.

Link copied to clipboard
fun setBalance(uuid: UUID, amount: ULong): RepositoryResult<Unit>

指定された UUID のプレイヤーの所持金を設定します.

Link copied to clipboard

指定された UUID のプレイヤーの経験値を設定します.

Link copied to clipboard
fun setLevel(uuid: UUID, newLevel: UInt): RepositoryResult<Unit>

指定された UUID のプレイヤーのレベルを設定します.

Link copied to clipboard

指定された UUID のプレイヤーから所持金を減算します.

Link copied to clipboard
fun transferBalance(fromUuid: UUID, toUuid: UUID, amount: ULong): RepositoryResult<Unit>

指定された UUID のプレイヤー間で所持金を送金します.