<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Gist for saving &#x2F; loading game state]]></title><description><![CDATA[<p>usage example:</p>
<pre><code>const saveGameData = new SaveGame(); // make a custom schema for saved games data
... /* add all state objects from your game manager to saveGameData */
const serialized = await schemaToString(saveGameData);
... /* save to file, read from file etc. */
const loadedGameData: SaveGame = await stringToSchema(SaveGame, serialized );
... /* take game state object from loadedGameData into your game manager */
</code></pre>
<p><a href="https://gist.github.com/amir-arad/08ea6c7b1c1e59d5b6776bedca404df2" rel="nofollow">see code in this gist</a></p>
]]></description><link>http://discuss.colyseus.io/topic/690/gist-for-saving-loading-game-state</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 19:03:38 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/690.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Jul 2022 18:58:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Gist for saving &#x2F; loading game state on Invalid Date]]></title><description><![CDATA[<p>usage example:</p>
<pre><code>const saveGameData = new SaveGame(); // make a custom schema for saved games data
... /* add all state objects from your game manager to saveGameData */
const serialized = await schemaToString(saveGameData);
... /* save to file, read from file etc. */
const loadedGameData: SaveGame = await stringToSchema(SaveGame, serialized );
... /* take game state object from loadedGameData into your game manager */
</code></pre>
<p><a href="https://gist.github.com/amir-arad/08ea6c7b1c1e59d5b6776bedca404df2" rel="nofollow">see code in this gist</a></p>
]]></description><link>http://discuss.colyseus.io/post/1994</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1994</guid><dc:creator><![CDATA[amir-arad]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>