Skip to content

Instantly share code, notes, and snippets.

@Hugo6991
Created February 21, 2022 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hugo6991/44a986ec13b169fcdd10dfdba59c48db to your computer and use it in GitHub Desktop.
Save Hugo6991/44a986ec13b169fcdd10dfdba59c48db to your computer and use it in GitHub Desktop.
03 | 合約變數 variables
// 目前正在進行的 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