idTech4.Text.idDecl.Purge C# (CSharp) Method

Purge() public method

public Purge ( ) : void
return void
		public void Purge()
		{
			if(this.Disposed == true)
			{
				throw new ObjectDisposedException(this.GetType().Name);
			}

			// never purge things that were referenced outside level load,
			// like the console and menu graphics
			if(this.ParsedOutsideLevelLoad == true)
			{
				return;
			}

			_referencedThisLevel = false;

			MakeDefault();

			// the next Find() for this will re-parse the real data
			_state = DeclState.Unparsed;
		}
		#endregion