This patch exposes camera rotation and camera zoom properties to JS.
I need this information in game to set a default rotation during the game. The current "reset camera" feature resets the camera rotation to the default values present in the config but these values are not available in game for the user to set.
With these functions one can read the whole camera attributes from JS and use these values for setting camera attributes later.
The use case is that some players like their camera positioned so that they are spawned at the "bottom" of the map. Whenever the player press R the camera resets to the default value. I want to be able to set the default value at runtime without ever going through the config.