Re: [DM-dev] explanation of config object, plus sample
Brought to you by:
acdalton,
henningsen
From: Henningsen <al...@gl...> - 2001-04-26 12:57:19
|
>Saving the object's state to the config file is now as simple as: > DMConfigFile c( "myfile.config" ); > SimpleConfigable sc; > sc.saveToConfig( c ); > bool okay = c.save(); > >If you have a completely populated DM object, you could save the whole >thing to a config file with: > DMConfigFile c( "myfile.dungeonconfig" ); > dm->saveToConfig( c ); > bool okay = c.save(); >..... >So, I'm trudging on ahead with that. If someone doesn't like it, please >let me know - I'm always open for discussion on these things. 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. Peter |