<?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[Scheme Map listeners for object array change]]></title><description><![CDATA[<p>Hello all,</p>
<p>I want to create a battleship game and i have the player SchemeMap and inside the player there is the board SchemeArray with the coordinates<br />
How can i listen for change.<br />
The whole object players is not updated and sent to the clients when i change field inside board and this syntax i think is old and doesn't work</p>
<pre><code>his.room.listen(&quot;players/:id/:attribute&quot;, function (change: ObjectState) {
            if(change.path[&quot;attribute&quot;] == &quot;direction&quot;){
                callback(change, thisScene);
            }
        });
</code></pre>
<p>how should i sent updates to the client regarding the board ?</p>
]]></description><link>http://discuss.colyseus.io/topic/492/scheme-map-listeners-for-object-array-change</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Mar 2026 21:57:39 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/492.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Aug 2021 12:06:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scheme Map listeners for object array change on Wed, 25 Aug 2021 17:39:52 GMT]]></title><description><![CDATA[<p>Hello all,</p>
<p>I want to create a battleship game and i have the player SchemeMap and inside the player there is the board SchemeArray with the coordinates<br />
How can i listen for change.<br />
The whole object players is not updated and sent to the clients when i change field inside board and this syntax i think is old and doesn't work</p>
<pre><code>his.room.listen(&quot;players/:id/:attribute&quot;, function (change: ObjectState) {
            if(change.path[&quot;attribute&quot;] == &quot;direction&quot;){
                callback(change, thisScene);
            }
        });
</code></pre>
<p>how should i sent updates to the client regarding the board ?</p>
]]></description><link>http://discuss.colyseus.io/post/1557</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1557</guid><dc:creator><![CDATA[TreantBG]]></dc:creator><pubDate>Wed, 25 Aug 2021 17:39:52 GMT</pubDate></item></channel></rss>