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.
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.