Exemplo n.º 1
0
 static void WriteLevelProperties(Level level, CP437Writer w)
 {
     w.WriteLine("#Level properties for " + level.name);
     w.WriteLine("#Drown-time in seconds is [drown time] * 200 / 3 / 1000");
     w.WriteLine("Physics = " + level.physics);
     ConfigElement.Serialise(Server.levelConfig, " settings", w, level);
 }
Exemplo n.º 2
0
        public override void Save()
        {
            if (cfg == null)
            {
                cfg = ConfigElement.GetAll(typeof(ZSConfig));
            }

            using (StreamWriter w = new StreamWriter(PropsPath)) {
                w.WriteLine("#   no-pillaring-during-zombie    = Disables pillaring while Zombie Survival is activated.");
                w.WriteLine("#   zombie-name-while-infected    = Sets the zombies name while actived if there is a value.");
                w.WriteLine();
                ConfigElement.Serialise(cfg, w, this);
            }
        }
Exemplo n.º 3
0
 public static void SaveSettings()
 {
     using (StreamWriter w = new StreamWriter("properties/zombiesurvival.properties")) {
         w.WriteLine("#   zombie-on-server-start        = Starts Zombie Survival when server is started.");
         w.WriteLine("#   no-respawning-during-zombie   = Disables respawning (Pressing R) while Zombie is on.");
         w.WriteLine("#   no-pillaring-during-zombie    = Disables pillaring while Zombie Survival is activated.");
         w.WriteLine("#   zombie-name-while-infected    = Sets the zombies name while actived if there is a value.");
         w.WriteLine("#   enable-changing-levels        = After a Zombie Survival round has finished, will change the level it is running on.");
         w.WriteLine("#   zombie-survival-only-server   = EXPERIMENTAL! Makes the server only for Zombie Survival (etc. changes main level)");
         w.WriteLine("#   use-level-list                = Only gets levels for changing levels in Zombie Survival from zombie-level-list.");
         w.WriteLine("#   zombie-level-list             = List of levels for changing levels (Must be comma seperated, no spaces. Must have changing levels and use level list enabled.)");
         w.WriteLine();
         ConfigElement.Serialise(Server.zombieConfig, " options", w, null);
     }
 }