C# Class SharpMod.CVar

CVariable class for GoldSrc
Datei anzeigen Open project: txdv/sharpmod Class Usage Examples

Private Properties

Property Type Description
CVar System
GetFlag bool
SetFlag void

Public Methods

Method Description
CVar ( string name, string val ) : System

Constructor for creating a CVar in C#

Get ( string name ) : CVar

Creates a CVar class for an already in the GoldSrc engine registered cvar.

GetFloatValue ( string name ) : float
GetStringValue ( string name ) : string

Gets the value of a CVariable

SetFloatValue ( string name, float value ) : void
SetStringValue ( string cvarname, string value ) : void

Private Methods

Method Description
CVar ( IntPtr ptr ) : System
GetFlag ( int field ) : bool
SetFlag ( int field, bool val ) : void

Method Details

CVar() public method

Constructor for creating a CVar in C#
public CVar ( string name, string val ) : System
name string /// The name of the cvar ///
val string /// An initial string value ///
return System

Get() public static method

Creates a CVar class for an already in the GoldSrc engine registered cvar.
public static Get ( string name ) : CVar
name string /// The name of the cvar ///
return CVar

GetFloatValue() public static method

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

GetStringValue() public static method

Gets the value of a CVariable
public static GetStringValue ( string name ) : string
name string /// Name of the CVariable ///
return string

SetFloatValue() public static method

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

SetStringValue() public static method

public static SetStringValue ( string cvarname, string value ) : void
cvarname string
value string
return void