Dernière activité 1 month ago

Révision 62a0f30484d0f32c1246c265df10c5c7a0591af5

scores.ts Brut
1export 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 };