/// <summary> /// Unloads the currently loaded level. /// </summary> public static void Unload() { LevelInterop.UnloadLevel(); }
/// <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)); }
/// <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))); }
/// <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)); }