asadm / playroom-unity

9 stars 1 forks source link

Non-WebGL Playroom Mock API #1

Closed asadm closed 11 months ago

asadm commented 11 months ago

When in editor, the playroom API should keep a local dictionary for game state as a mock so player can iterate quickly locally and then to test actual multiplayer they can export to webGL and test with real Playroom in multiple tabs.

Also add a single player (the dev himself) in this mock. The API should work in editor (ie. playerState.setState(...) should just set a class property locally as a mock, getState(...) should give me the right value back).

In the WebGL env, the mock will not be used and the API calls will be binded to JSLib.