Add getJsonManager to gdjs.RuntimeGame

This commit is contained in:
Florian Rival
2019-07-01 22:24:48 +01:00
parent 52cec48bf1
commit 5b3bb9d0cf

View File

@@ -107,6 +107,15 @@ gdjs.RuntimeGame.prototype.getInputManager = function() {
return this._inputManager;
};
/**
* Get the JSON manager of the game, used to load JSON from game
* resources.
* @return {gdjs.JsonManager} The json manager for the game
*/
gdjs.RuntimeGame.prototype.getJsonManager = function() {
return this._jsonManager;
};
/**
* Get the object containing the game data
* @return {Object} The object associated to the game.