ToString() public method

public ToString ( ) : string
return string
Exemplo n.º 1
0
 protected override void HandlerConfiguration(JObject configuration)
 {
     Debug.Log("received config");
     try
     {
         g = GameSetting.instance.configuration;
         GameConfiguration.SetConfigFromObject(configuration.Value <JObject>("gameConfiguration"), g);
         List <Player> players   = configuration.Value <JArray>("players").ToObject <List <Player> >();
         int           sessionId = configuration.Value <int>("sessionId");
         MagicRoomManager.instance.Logger.SessionID = sessionId;
         MagicRoomManager.instance.Logger.AddToLogNewLine("SessionId " + g.sessionactid);
         MagicRoomManager.instance.Logger.AddToLogNewLine("Received configuration " + g.ToString());
         GameSetting.instance.SetConfiguration(g, players);
         Debug.Log(GameSetting.instance.configuration);
     }
     catch (Exception)
     {
         Debug.Log("Parsing error in the configuration");
         Debug.Log("Parsing error in the configuration");
         JObject result = new JObject();
         result["result"] = false;
         MagicRoomManager.instance.ExperienceManagerComunication.SendResponse("setConfiguration", result);
     }
 }
Exemplo n.º 2
0
        public void ShowBoard(GameConfiguration configuration)
        {
            var difficultyName = configuration.ToString();

            var correctPath = _filePath + "/" + difficultyName + "json";
        }