Opened 13 years ago
Closed 13 years ago
#25 closed enhancement (fixed)
Add IO derivatives of the play, simulate, and animate actions
Reported by: | Thomas DuBuisson | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.0 |
Component: | Unknown | Version: | 1.5.0 |
Keywords: | Cc: |
Description
I propose we generalize the animate, simulate, and play actions by providing variants allowing IO actions for world stepping and rendering.
The reasoning here is: 1) World-stepping should be permitted to be IO because there might be outside influences on the world state (ex: a networked game). 2) Rendering the world should be permitted to be IO because there might be outside information needed (texture loading, map tile retrieving, etc).
This would be particularly useful for work like gloss-osm, that allows immediate rendering by presenting missing tiles with a default until the download is complete.
Attachments (2)
Change History (5)
Changed 13 years ago by
Attachment: | Add-IO-derivitives.patch added |
---|
comment:1 follow-up: 2 Changed 13 years ago by
I've pushed this and exported the IO versions from their own modules. We should still change the event handling function of playIO to take an IO action, be consistent.
Changed 13 years ago by
Attachment: | AllowEventCallbacksToBeIOActions.patch added |
---|
Fix the event callback to be an IO action
comment:2 Changed 13 years ago by
Replying to benl:
I've pushed this and exported the IO versions from their own modules. We should still change the event handling function of playIO to take an IO action, be consistent.
Done, see the new attachment.
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This is a patch that implements the proposal.