SwiftlyS2

ICommandLine

Interface ICommandLine

Namespace: SwiftlyS2.Shared.CommandLine

Assembly: SwiftlyS2.CS2.dll

public interface ICommandLine

Properties

CommandLine

string CommandLine { get; }
Property Value

HasParameters

bool HasParameters { get; }
Property Value

ParameterCount

Gets the total number of parameters in the command line.

int ParameterCount { get; }
Property Value

Methods

GetParameterFloat(string, float)

Gets a float parameter from the command line.

float GetParameterFloat(string paramName, float defaultValue = 0)
Parameters
Returns

GetParameterInt(string, int)

Gets an integer parameter from the command line.

int GetParameterInt(string paramName, int defaultValue = 0)
Parameters
Returns

GetParameterString(string, string)

Gets a string parameter from the command line.

string GetParameterString(string paramName, string defaultValue = "")
Parameters
Returns

HasParameter(string)

Checks if a parameter exists in the command line.

bool HasParameter(string paramName)
Parameters
Returns

On this page