Hello. For the Python scripting interface, I need to wrap (put in Python's structures) some pointers to Wesnoth's variables. Also makes it faster to find value.
Question is what variables can I safely keep, ie what variables will definitely *not* be removed during one turn? Don't want to do deleted_instance->method() calls :) Of course I will add safety checks where needed (typical example: units, that may be removed when killed, so Python may keep a now invalid pointer somewhere), but if I can avoid some, so much the better :) I think the following ones should be safe, ie represent data that is immutable during the turn or even during the whole game: * unit_type pointers * team pointers * races * gamemap * gamestatus Note that for now (alpha version!) no variable is kept between turns. But there shall be one way for scripts to store data between runs. So yes I will add checks, maybe more than needed. Nicolas
