random getstate/setstate

telengard bsturk at comcast.net
Sun Aug 10 18:38:58 PDT 2008


I'm not sure if this is the right group for "newbie" type questions if not I will repost.

I'm considering porting my C++ game to D (had been python, AI was way too slow, now memory management is driving me nuts).  So far just about everything on my long checklist is there, even some stuff that will make it much easier/cleaner like the object::factory() stuff.

The one thing I haven't been able to find is support for getstate/setstate for tucking away the state of the RNG.  I need this to support replays.  I've searched and have not been able to find it.  Would it be too difficult to somehow get at it through the C interfacing capabilities?

thanks for any info,
~telengard


More information about the Digitalmars-d-learn mailing list