Beispiel #1
0
        static public LevelFile deserializeFromFile(string filename)
        {
            string    text   = System.IO.File.ReadAllText(filename);
            LevelFile result = JsonConvert.DeserializeObject <LevelFile>(text);

            return(result);
        }
Beispiel #2
0
 Game(LevelFile _level)
 {
     level = _level;
     makeInitialThreats(threat.fighterBar);
     makeInitialThreats(threat.rogueBar);
 }