[Cuis] WorldState

Juan Vuletich juan at jvuletich.org
Wed Sep 19 09:45:26 CDT 2012


Hi Jerry,

Jerry Bell wrote:
> Hello,
>
> Inspecting World, I see it is a PasteUpMorph, and its worldState iVar
> is a WorldState instance.
>
> Where does this happen?  I cannot find anywhere in PasteUpMorph where
> worldState is set.  Am I missing something?
>
> Thanks!
>
> Jerry

The code for creating new worlds is not currently there. But it is not 
too hard to add. Just create new instances that look like the current 
ones, and set globals ActiveWorld and World. Then you need to make your 
new world run. The usual way is via #spawnNewProcessX. If you have 
several worlds at the same time, the way to switch between them is to 
suspend the process of the active world, and resume the process of the 
world you jump into, and update the globals. Also do 'Display restore'.

If you come up with code that might be useful for others, or for 
integrating into Cuis, please send it to this list.

Cheers,
Juan Vuletich




More information about the Cuis mailing list