More ScriptInterface const.

Reviewed By: elexis; some comments by bb
Differential Revision: https://code.wildfiregames.com/D863
This was SVN commit r20519.
This commit is contained in:
leper
2017-11-25 06:49:58 +00:00
parent 60801158b5
commit f7206dc77d
14 changed files with 27 additions and 35 deletions
+2 -2
View File
@@ -159,7 +159,7 @@ public:
* Get the script interface associated with this network client,
* which is equivalent to the one used by the CGame in the constructor.
*/
ScriptInterface& GetScriptInterface();
const ScriptInterface& GetScriptInterface();
/**
* Send a message to the server.
@@ -189,7 +189,7 @@ public:
*/
void LoadFinished();
void SendGameSetupMessage(JS::MutableHandleValue attrs, ScriptInterface& scriptInterface);
void SendGameSetupMessage(JS::MutableHandleValue attrs, const ScriptInterface& scriptInterface);
void SendAssignPlayerMessage(const int playerID, const CStr& guid);