コード例 #1
0
ファイル: CVar.cs プロジェクト: yonder/CryMono
        /// <summary>
        /// Unregisters an existing console variable
        /// </summary>
        /// <param name="name"></param>
        /// <param name="delete"></param>
        public static void Unregister(string name, bool delete = false)
        {
            NativeCVarMethods.UnregisterCVar(name, delete);

            CVars.RemoveAll(x => x.Name == name);
        }
コード例 #2
0
        /// <summary>
        /// Unregisters an existing console variable.
        /// </summary>
        /// <param name="name">Name of the variable to unregister.</param>
        /// <param name="delete">Indicates whether traces of the variable must be deleted.</param>
        public static void Unregister(string name, bool delete = false)
        {
            Native.ConsoleInterop.UnregisterCVar(name, delete);

            CVars.RemoveAll(x => x.Name == name);
        }