camelot-unchained
Version:
Camelot Unchained Client Library
32 lines (24 loc) • 711 B
text/typescript
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
class Population {
arthurians: number;
tuathaDeDanann: number;
vikings: number;
max: number;
constructor(population = <Population>{}) {
// Population limit
this.max = population.max || 0;
// Current Population by realm
this.arthurians = population.arthurians || 0;
this.tuathaDeDanann = population.tuathaDeDanann || 0;
this.vikings = population.vikings || 0;
}
static create() {
let a = new Population();
return a;
}
}
export default Population;