colyseus / colyseus-construct3

⚔ Colyseus Multiplayer SDK for Construct 3
https://docs.colyseus.io/getting-started/construct3-client/
MIT License
22 stars 12 forks source link

Stringify object in expressions #27

Closed raassh-23 closed 1 year ago

raassh-23 commented 1 year ago

I know i was only suggesting to stringify object in MessageValue and MessageValueAt, but i think it would also beneficial to add that to state handling as well.

endel commented 1 year ago

Thanks for your PR @raassh-23 🙏 , I ended up using a slightly modified version by refactoring the getDeepVariable to return raw values, so the data type comparison uses the real values instead of casted ones: https://github.com/colyseus/colyseus-construct3/commit/95523edb60eadb029d3cdd2dab7300dddb23c854