2016-04-27 14:28:22 -04:00
|
|
|
let nextId = 1;
|
|
|
|
|
2015-11-28 23:43:09 -05:00
|
|
|
export class Hero {
|
2016-04-27 14:28:22 -04:00
|
|
|
id: number;
|
2015-11-30 17:13:24 -05:00
|
|
|
constructor(
|
2016-04-27 14:28:22 -04:00
|
|
|
public name: string,
|
|
|
|
public power?: string) {
|
2015-11-30 17:13:24 -05:00
|
|
|
this.id = nextId++;
|
|
|
|
}
|
2015-11-28 23:43:09 -05:00
|
|
|
}
|