idTech4.idConsole.DeveloperWrite C# (CSharp) 메소드

DeveloperWrite() 공개 정적인 메소드

Prints message that only shows up if the "developer" cvar is set.
public static DeveloperWrite ( string format ) : void
format string
리턴 void
		public static void DeveloperWrite(string format, params object[] args)
		{
			if((idE.CvarSystem.IsInitialized == false) || (idE.CvarSystem.GetBool("developer") == false))
			{
				return; // don't confuse non-developers with techie stuff...
			}

			// never refresh the screen, which could cause reentrency problems
			bool temp = idE.System.RefreshOnPrint;

			Write(string.Format("{0}{1}", idColorString.Red, string.Format(format, args)));

			idE.System.RefreshOnPrint = temp;
		}