C# Class SharpQuake.Cvar

Show file Open project: Memorix101/SharpQuake Class Usage Examples

Public Methods

Method Description
Command ( ) : bool
CompleteName ( string partial ) : string[]
Cvar ( string name, string value ) : System
Cvar ( string name, string value, bool archive ) : System
Cvar ( string name, string value, bool archive, bool server ) : System
Exists ( string name ) : bool
Find ( string name ) : Cvar
GetString ( string name ) : string
GetValue ( string name ) : float
Set ( string value ) : void
Set ( string name, float value ) : void
Set ( string name, string value ) : void
WriteVariables ( Stream dest ) : void

Cvar_WriteVariables Writes lines containing "set variable value" for all variables with the archive flag set to true.

Protected Methods

Method Description
Cvar ( ) : System

Method Details

Command() public static method

public static Command ( ) : bool
return bool

CompleteName() public static method

public static CompleteName ( string partial ) : string[]
partial string
return string[]

Cvar() protected method

protected Cvar ( ) : System
return System

Cvar() public method

public Cvar ( string name, string value ) : System
name string
value string
return System

Cvar() public method

public Cvar ( string name, string value, bool archive ) : System
name string
value string
archive bool
return System

Cvar() public method

public Cvar ( string name, string value, bool archive, bool server ) : System
name string
value string
archive bool
server bool
return System

Exists() public static method

public static Exists ( string name ) : bool
name string
return bool

Find() public static method

public static Find ( string name ) : Cvar
name string
return Cvar

GetString() public static method

public static GetString ( string name ) : string
name string
return string

GetValue() public static method

public static GetValue ( string name ) : float
name string
return float

Set() public method

public Set ( string value ) : void
value string
return void

Set() public static method

public static Set ( string name, float value ) : void
name string
value float
return void

Set() public static method

public static Set ( string name, string value ) : void
name string
value string
return void

WriteVariables() public static method

Cvar_WriteVariables Writes lines containing "set variable value" for all variables with the archive flag set to true.
public static WriteVariables ( Stream dest ) : void
dest Stream
return void