import { Entity } from "../../entity" ; import { IStorage } from "../../istorage" ; import { ILocation } from "../../location" ; export namespace ChesFlags { export enum Met { NotMet = 0 } } export class Ches extends Entity { constructor ( storage ? ) { super ( ) ; this . ID = "ches" ; this . name = "Ches" ; this . body . DefMale ( ) ; this . flags . Met = ChesFlags . Met . NotMet ; if ( storage ) { this . FromStorage ( storage ) ; } } public Met ( ) { return this . flags . Met !== ChesFlags . Met . NotMet ; } public FromStorage ( storage ) { this . LoadPersonalityStats ( storage ) ; this . LoadFlags ( storage ) ; } public ToStorage ( ) { const storage = { } ; this . SavePersonalityStats ( storage ) ; this . SaveFlags ( storage ) ; return storage ; } public IsAtLocation ( location ? ) { return true ; } } export namespace ChesScenes { }