diff --git a/src/app/model.ts b/src/app/model.ts index 4aba7b2..842bdd4 100644 --- a/src/app/model.ts +++ b/src/app/model.ts @@ -21,9 +21,14 @@ export class Player{ this.setter = setter; this.libero = libero; } - serialize(): string[] { - const values = 'OOOO' - return [this.name, values]; + getRoles(): string[] { + const roles = []; + if (this.outside){roles.push('OH')} + if (this.middle){roles.push('M')} + if (this.opposite){roles.push('OPP')} + if (this.setter){roles.push('S')} + if (this.libero){roles.push('L')} + return roles; } toString(): string{ diff --git a/src/app/screen-edit/screen-edit.component.html b/src/app/screen-edit/screen-edit.component.html index 625549e..5165eae 100644 --- a/src/app/screen-edit/screen-edit.component.html +++ b/src/app/screen-edit/screen-edit.component.html @@ -19,7 +19,10 @@