nuno 修订了这个 Gist 1 month ago. 转到此修订
1 file changed, 33 insertions
scores.ts(文件已创建)
| @@ -0,0 +1,33 @@ | |||
| 1 | + | export interface ScoreSubmission { | |
| 2 | + | usermapKey: string; // owner's key (score goes here) | |
| 3 | + | playedBy?: string; // borrower's key if different from owner | |
| 4 | + | characterName: string; | |
| 5 | + | cls: ClassKey; | |
| 6 | + | nation: Nation; | |
| 7 | + | pts: number; | |
| 8 | + | k?: number; | |
| 9 | + | d?: number; | |
| 10 | + | slot: number; | |
| 11 | + | date?: string; | |
| 12 | + | atk?: number; | |
| 13 | + | def?: number; | |
| 14 | + | heal?: number; | |
| 15 | + | submittedByOfficer: boolean; | |
| 16 | + | } | |
| 17 | + | const score: TGScore = { | |
| 18 | + | usermapKey: sub.usermapKey, | |
| 19 | + | playedBy: sub.playedBy, | |
| 20 | + | characterName: sub.characterName, | |
| 21 | + | class: sub.cls, | |
| 22 | + | nation: sub.nation, | |
| 23 | + | pts: sub.pts, | |
| 24 | + | k: sub.k, | |
| 25 | + | d: sub.d, | |
| 26 | + | atk: sub.atk, | |
| 27 | + | def: sub.def, | |
| 28 | + | heal: sub.heal, | |
| 29 | + | submittedAt: new Date().toISOString(), | |
| 30 | + | slot: sub.slot, | |
| 31 | + | date, | |
| 32 | + | submittedByOfficer: sub.submittedByOfficer, | |
| 33 | + | }; | |
上一页
下一页