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

            return(currentSession);
        }
Esempio n. 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}");
        }
Esempio n. 3
0
 public void clientSetSession(serverJson session)
 {
     skinManager.clientSetSession(session);
 }