Created
February 21, 2022 13:36
-
-
Save Hugo6991/44a986ec13b169fcdd10dfdba59c48db to your computer and use it in GitHub Desktop.
03 | 合約變數 variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 目前正在進行的 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