C# Class SharpMod.CVar

CVariable class for GoldSrc
Afficher le fichier Open project: txdv/sharpmod Class Usage Examples

Private Properties

Свойство Type Description
CVar System
GetFlag bool
SetFlag void

Méthodes publiques

Méthode 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

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

Method Details

CVar() public méthode

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 ///
Résultat System

Get() public static méthode

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 ///
Résultat CVar

GetFloatValue() public static méthode

public static GetFloatValue ( string name ) : float
name string
Résultat float

GetStringValue() public static méthode

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

SetFloatValue() public static méthode

public static SetFloatValue ( string name, float value ) : void
name string
value float
Résultat void

SetStringValue() public static méthode

public static SetStringValue ( string cvarname, string value ) : void
cvarname string
value string
Résultat void