2026-07-25 12:39:32 +02:00
|
|
|
internal import CPlaydate
|
|
|
|
|
|
|
|
|
|
extension Scoreboards {
|
|
|
|
|
/// A board belonging to the game.
|
|
|
|
|
public struct Board {
|
2026-07-25 12:55:53 +02:00
|
|
|
/// The board's identifier, used in the other scoreboard calls.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let boardID: String
|
2026-07-25 12:55:53 +02:00
|
|
|
/// The board's display name.
|
2026-07-25 12:39:32 +02:00
|
|
|
public let name: String
|
|
|
|
|
|
|
|
|
|
init(_ board: PDBoard) {
|
|
|
|
|
boardID = String(playdateCString: board.boardID) ?? ""
|
|
|
|
|
name = String(playdateCString: board.name) ?? ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|