UNPKG

npc-aspect

Version:

Library for NPC aspect modelling.

37 lines 2.04 kB
import { AgeKind, EyeColor, ComplexionKind, HairColor, HaircutStyle, OriginKind, SexKind, SpecieKind } from "./enumerations"; export declare class Aspect { private _sex; private _origin; private _eye; private _hair; private _haircut; private _complexion; private _specie; private _height; private _age; constructor(sex?: SexKind, origin?: OriginKind, eye?: EyeColor, hair?: HairColor, haircut?: HaircutStyle, complexion?: ComplexionKind, specie?: SpecieKind, height?: number, age?: number); get sex(): SexKind; get origin(): OriginKind; get eye(): EyeColor; get hair(): HairColor; get haircut(): HaircutStyle; get complexion(): ComplexionKind; get specie(): SpecieKind; get height(): number; get age(): number; static generateHuman(sex: SexKind, origin: OriginKind, eye: EyeColor, hair: HairColor, haircut: HaircutStyle, complexion: ComplexionKind, height: number, age: number): Aspect; static generateAgeKindHuman(sex: SexKind, origin: OriginKind, eye: EyeColor, hair: HairColor, haircut: HaircutStyle, complexion: ComplexionKind, height: number, ageKind: AgeKind): Aspect; static generateRandomAgeKind(ageKind: AgeKind): Aspect; static generateOriginHuman(origin: OriginKind): Aspect; static generateRandomSpecie(specie: SpecieKind): Aspect; static generateOriginAndSexHuman(origin: OriginKind, sex: SexKind): Aspect; static generateOriginAndAgeHuman(origin: OriginKind, age: AgeKind): Aspect; static generateOriginAgeAndSexHuman(origin: OriginKind, age: AgeKind, sex: SexKind): Aspect; static generateRandomSpecieAndSex(specie: SpecieKind, sex: SexKind): Aspect; static generateRandomSpecieAndAge(specie: SpecieKind, age: AgeKind): Aspect; static generateRandomSpecieAgeAndSex(specie: SpecieKind, age: AgeKind, sex: SexKind): Aspect; copy(): Aspect; private static getRandomAgeByAgeKind; private static getRandomHeightBySpecie; } //# sourceMappingURL=aspect.d.ts.map