Esempio n. 1
0
 /// <summary>
 /// Unloads the currently loaded level.
 /// </summary>
 public static void Unload()
 {
     LevelInterop.UnloadLevel();
 }
Esempio n. 2
0
 /// <summary>
 /// Returns true if this level supports the specific game rules.
 /// </summary>
 /// <param name="gamemodeName"></param>
 /// <returns>A boolean indicating whether the specified gamemode is supported.</returns>
 public bool SupportsGameRules(string gamemodeName)
 {
     return(LevelInterop.SupportsGameType(Handle, gamemodeName));
 }
Esempio n. 3
0
 /// <summary>
 /// Loads a new level and returns its level info
 /// </summary>
 /// <param name="name"></param>
 /// <returns>The loaded level</returns>
 public static Level Load(string name)
 {
     return(TryGet(LevelInterop.LoadLevel(name)));
 }
Esempio n. 4
0
 /// <summary>
 /// Gets the supported game rules at the index; see SupportedGamerules.
 /// </summary>
 /// <param name="index"></param>
 /// <returns>Name of the supported gamemode</returns>
 public string GetSupportedGameRules(int index)
 {
     return(LevelInterop.GetGameType(Handle, index));
 }