Exemple #1
0
        public serverJson loadSession()
        {
            string     sessionjson    = skinManager.getServerJson();
            serverJson currentSession = JsonUtility.FromJson <serverJson>(sessionjson);

            return(currentSession);
        }
Exemple #2
0
        public void clientSetSession(serverJson currentSession)
        {
            //write current session to disk for debug
            session = currentSession;
            var sessionjson = JsonUtility.ToJson(currentSession);

            File.WriteAllText(sessionJsonPath, sessionjson);
            UI.UIManager.InfoBox.AddMessage($"Welcome to {currentSession.Name}");
            UI.UIManager.InfoBox.AddMessage($"Hosted by {currentSession.Host}");
        }
Exemple #3
0
 public void clientSetSession(serverJson session)
 {
     skinManager.clientSetSession(session);
 }