Re: [DM-dev] explanation of config object, plus sample
Brought to you by:
acdalton,
henningsen
From: Stephan B. <ste...@ei...> - 2001-04-26 13:36:31
|
On Thursday 26 April 2001 15:05, you wrote: > My only concern is whether it will also be possible to save/load > DESIGNparams and GENETICparams to/from two different files? We will > need that to implement planned future developments. Any DungeonElement object (see previous mail) can save itself to a=20 file, and it will contain only it's data and that of it's children. So=20 we'll be able to easily support multiple files for apps which need it: DungeonElement *dungeon =3D new DMProperties( "my.dungeondata" ); dungeon->load(); DungeonElement *crawler =3D new Crawler( "fred.crawlerdata" ); crawler->load(); dungeon->add( crawler ); =2E =2E =2E crawler->save(); dungeon->save(); // but crawler data is also saved here, because it's a=20 child of dungeon All done! ----- Stephan Beal Generic Universal Computer Guy ste...@ei... - http://www.einsurance.de Office: +49 (89) 552 92 862 Handy: +49 (179) 211 97 67 "Belief makes a hollow place. Something has to roll in to fill it." -- Terry Pratchet |