Console

Материал из Oxygen Engine
Перейти к: навигация, поиск

Console Engine Class

	ref class EngineConsole abstract
	{
		static bool Check(::System::String^ Command);
		static void Execute(::System::String^ Command);
		static void Execute(::System::String^ Command, bool bEnable);
	};

Check

Checks the value of your console command if it is a boolean type.

Arg:

  • Command: Your console command

Returns:

  • Returns true/false if successful
  • Returns false is failed

Execute

Executes your command

Execute string

Arg:

  • Command: Your console command

Sample:

EngineConsole.Check("ph_frequency 100.00000");

Execute boolean

Arg:

  • Command: Your console command
  • bEnable: True/False

Sample:

EngineConsole.Check("rs_stats", on);