Difference between revisions of "Save System"
(Created page with "What are the required features? * Multiple save states * Load resets the level * Hierarchal grouping * Load into player object and scene objects * Save everything in an xml file ...") |
|||
| Line 16: | Line 16: | ||
**** Current Transform | **** Current Transform | ||
*** Event Flags | *** Event Flags | ||
| + | |||
| + | File Template | ||
| + | <enscript lang=html> | ||
| + | <?xml version="1.0" encoding="ISO-8859-1"?> | ||
| + | <root> | ||
| + | <player> | ||
| + | <inventory /> | ||
| + | <level name="mapname" /> | ||
| + | <position x="0" y="0" z="0" /> | ||
| + | <rotation x="0" y="0" z="0" /> | ||
| + | <scale x="0" y="0" z="0" /> | ||
| + | </player> | ||
| + | <scenes> | ||
| + | <scene name="map1"> | ||
| + | <object name="obj1"> | ||
| + | <position x="0" y="0" z="0" /> | ||
| + | <rotation x="0" y="0" z="0" /> | ||
| + | <scale x="0" y="0" z="0" /> | ||
| + | </object> | ||
| + | <events> | ||
| + | <event id="shortname" value="1" /> | ||
| + | </events> | ||
| + | </scene> | ||
| + | </scenes> | ||
| + | </root> | ||
| + | </enscript> | ||
Revision as of 09:45, 11 April 2011
What are the required features?
- Multiple save states
- Load resets the level
- Hierarchal grouping
- Load into player object and scene objects
- Save everything in an xml file
What needs to be saved?
- Player State
- Inventory
- Current Scene
- Current Transform?
- Multiple Scenes
- Scene State
- Movable Objects
- Current Transform
- Event Flags
- Movable Objects
- Scene State
File Template <enscript lang=html> <?xml version="1.0" encoding="ISO-8859-1"?> <root> <player> <inventory /> <level name="mapname" /> <position x="0" y="0" z="0" /> <rotation x="0" y="0" z="0" /> <scale x="0" y="0" z="0" /> </player> <scenes> <scene name="map1"> <object name="obj1"> <position x="0" y="0" z="0" /> <rotation x="0" y="0" z="0" /> <scale x="0" y="0" z="0" /> </object> <events> <event id="shortname" value="1" /> </events> </scene> </scenes> </root> </enscript>