Пример #1
0
        public override void Sauvegarder(string path)
        {
            File.WriteAllLines(path + "\\info.txt", new string[] { x + "/" + y + "/" + vie + "/" + faim + "/" + maindroite });
            inventaire.Sauvegarder(path);
            barre.Sauvegarder(path);
            crafting.Sauvegarder(path);

            string s = casque == null ? "null" : casque.id();

            Directory.CreateDirectory(path + "\\Casque." + s);
            if (casque != null)
            {
                casque.Sauvegarder(path + "\\Casque." + s);
            }

            s = plastron == null ? "null" : plastron.id();
            Directory.CreateDirectory(path + "\\Plastron." + s);
            if (plastron != null)
            {
                plastron.Sauvegarder(path + "\\Plastron." + s);
            }

            s = jambiere == null ? "null" : jambiere.id();
            Directory.CreateDirectory(path + "\\Jambiere." + s);
            if (jambiere != null)
            {
                jambiere.Sauvegarder(path + "\\Jambiere." + s);
            }

            s = botte == null ? "null" : botte.id();
            Directory.CreateDirectory(path + "\\Botte." + s);
            if (botte != null)
            {
                botte.Sauvegarder(path + "\\Botte." + s);
            }
        }
Пример #2
0
 public override void Sauvegarder(string path)
 {
     inventaire.Sauvegarder(path);
 }
Пример #3
0
 public override void Sauvegarder(string path)
 {
     inventaire.Sauvegarder(path);
     System.IO.File.WriteAllLines(path + "\\info.txt", new string[] { "Carburant:" + carburant });
 }