Skip to content

Instantly share code, notes, and snippets.

@harry830622
Created February 27, 2022 06:11
Show Gist options
  • Select an option

  • Save harry830622/8dcf51c02ff8d528143bb245a9e0d01c to your computer and use it in GitHub Desktop.

Select an option

Save harry830622/8dcf51c02ff8d528143bb245a9e0d01c to your computer and use it in GitHub Desktop.
// 目前正在進行的 series
pub var currentSeries: UInt32
// 紀錄 play 的資訊
// 是一個 play ID -> play 資訊的 mapping
access(self) var playDatas: {UInt32: Play}
// 紀錄 set 的資訊
// 是一個 set ID -> set 資訊的 mapping
access(self) var setDatas: {UInt32: SetData}
// 儲存 set resources
// 是一個 set ID -> set resource 的 mapping
access(self) var sets: @{UInt32: Set}
// 下一個新 play 的 ID
pub var nextPlayID: UInt32
// 下一個新 set 的 ID
pub var nextSetID: UInt32
// 目前卡片的總量
// 包含就算之後被銷毀的
pub var totalSupply: UInt64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment