import * as _ from "lodash" ; import { IStorage } from "../../istorage" ; import { ILocation } from "../../location" ; export const TreeCityLoc = undefined ; export namespace TreeCityScenes { } export class TreeCity { public flags : any ; constructor ( storage ? ) { this . flags = { } ; this . flags . Access = 0 ; if ( storage ) { this . FromStorage ( storage ) ; } } public ToStorage ( ) { const storage = { } ; storage . flags = this . flags ; return storage ; } public FromStorage ( storage ) { _ . forIn ( storage . flags , ( value , key ) => { this . flags [ key ] = parseInt ( value as string , 10 ) ; } ) ; } }