C# Класс SharpQuake.QBuiltins

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CheckEmptyString void
Copy void
Copy void
PF_Find void
PF_Fixme void
PF_Remove void
PF_Spawn void
PF_VarString string
PF_WriteAngle void
PF_WriteByte void
PF_WriteChar void
PF_WriteCoord void
PF_WriteEntity void
PF_WriteLong void
PF_WriteShort void
PF_WriteString void
PF_aim void
PF_ambientsound void
PF_bprint void
PF_break void
PF_ceil void
PF_centerprint void
PF_changelevel void
PF_checkbottom void
PF_checkclient void
PF_checkpos void
PF_coredump void
PF_cvar void
PF_cvar_set void
PF_dprint void
PF_droptofloor void
PF_eprint void
PF_error void
PF_fabs void
PF_findradius void
PF_floor void
PF_ftos void
PF_lightstyle void
PF_localcmd void
PF_makestatic void
PF_makevectors void
PF_newcheckclient int
PF_nextent void
PF_normalize void
PF_objerror void
PF_particle void
PF_pointcontents void
PF_precache_file void
PF_precache_model void
PF_precache_sound void
PF_random void
PF_rint void
PF_setmodel void
PF_setorigin void
PF_setsize void
PF_setspawnparms void
PF_sound void
PF_sprint void
PF_stuffcmd void
PF_traceline void
PF_traceoff void
PF_traceon void
PF_vectoangles void
PF_vectoyaw void
PF_vlen void
PF_vtos void
PF_walkmove void
SetMinMaxSize void
SetTempString int

Открытые методы

Метод Описание
ClearState ( ) : void

Called by Progs.LoadProgs()

Execute ( int num ) : void
GetEdict ( int parm ) : edict_t

//#define G_EDICT(o) ((edict_t *)((byte *)sv.edicts+ *(int *)&pr_globals[o]))

GetFloat ( int parm ) : float

G_FLOAT(o)

GetInt ( int parm ) : int

G_INT(o)

GetString ( int parm ) : string

//#define G_STRING(o) (pr_strings + *(string_t *)&pr_globals[o])

GetVector ( int parm ) : float*

G_VECTOR(o)

PF_changeyaw ( ) : void
ReturnEdict ( edict_t e ) : void

RETURN_EDICT(e) (((int *)pr_globals)[OFS_RETURN] = EDICT_TO_PROG(e))

ReturnFloat ( float value ) : void

G_FLOAT(OFS_RETURN) = value

ReturnInt ( int value ) : void

G_INT(OFS_RETURN) = value

ReturnVector ( Vector3 &value ) : void

G_VECTOR(OFS_RETURN) = value

ReturnVector ( v3f &value ) : void

G_VECTOR(OFS_RETURN) = value

Приватные методы

Метод Описание
CheckEmptyString ( string s ) : void
Copy ( float src, Vector3 &dest ) : void
Copy ( float src, v3f &dest ) : void
PF_Find ( ) : void

PF_Find entity (entity start, .string field, string match) find = #5;

PF_Fixme ( ) : void
PF_Remove ( ) : void
PF_Spawn ( ) : void
PF_VarString ( int first ) : string
PF_WriteAngle ( ) : void
PF_WriteByte ( ) : void
PF_WriteChar ( ) : void
PF_WriteCoord ( ) : void
PF_WriteEntity ( ) : void
PF_WriteLong ( ) : void
PF_WriteShort ( ) : void
PF_WriteString ( ) : void
PF_aim ( ) : void
PF_ambientsound ( ) : void
PF_bprint ( ) : void
PF_break ( ) : void
PF_ceil ( ) : void
PF_centerprint ( ) : void
PF_changelevel ( ) : void
PF_checkbottom ( ) : void

PF_checkbottom

PF_checkclient ( ) : void

PF_checkclient Returns a client (or object that has a client enemy) that would be a valid target. If there are more than one valid options, they are cycled each frame If (self.origin + self.viewofs) is not in the PVS of the current target, it is not returned at all. name checkclient ()

PF_checkpos ( ) : void
PF_coredump ( ) : void
PF_cvar ( ) : void
PF_cvar_set ( ) : void
PF_dprint ( ) : void
PF_droptofloor ( ) : void
PF_eprint ( ) : void
PF_error ( ) : void

PF_errror This is a TERMINAL error, which will kill off the entire server. Dumps self. error(value)

PF_fabs ( ) : void
PF_findradius ( ) : void
PF_floor ( ) : void
PF_ftos ( ) : void
PF_lightstyle ( ) : void
PF_localcmd ( ) : void

PF_localcmd Sends text over to the client's execution buffer localcmd (string)

PF_makestatic ( ) : void
PF_makevectors ( ) : void
PF_newcheckclient ( int check ) : int
PF_nextent ( ) : void
PF_normalize ( ) : void
PF_objerror ( ) : void
PF_particle ( ) : void
PF_pointcontents ( ) : void

PF_pointcontents

PF_precache_file ( ) : void
PF_precache_model ( ) : void
PF_precache_sound ( ) : void
PF_random ( ) : void
PF_rint ( ) : void
PF_setmodel ( ) : void
PF_setorigin ( ) : void

PF_setorigin This is the only valid way to move an object without using the physics of the world (setting velocity and waiting). Directly changing origin will not set internal links correctly, so clipping would be messed up. This should be called when an object is spawned, and then only if it is teleported. setorigin (entity, origin)

PF_setsize ( ) : void
PF_setspawnparms ( ) : void
PF_sound ( ) : void
PF_sprint ( ) : void

PF_sprint single print to a specific client sprint(clientent, value)

PF_stuffcmd ( ) : void

PF_stuffcmd Sends text over to the client's execution buffer stuffcmd (clientent, value)

PF_traceline ( ) : void
PF_traceoff ( ) : void
PF_traceon ( ) : void
PF_vectoangles ( ) : void
PF_vectoyaw ( ) : void

PF_vectoyaw float vectoyaw(vector)

PF_vlen ( ) : void
PF_vtos ( ) : void
PF_walkmove ( ) : void

PF_walkmove float(float yaw, float dist) walkmove

SetMinMaxSize ( edict_t e, Vector3 &min, Vector3 &max, bool rotate ) : void
SetTempString ( string value ) : int

Описание методов

ClearState() публичный статический Метод

Called by Progs.LoadProgs()
public static ClearState ( ) : void
Результат void

Execute() публичный статический Метод

public static Execute ( int num ) : void
num int
Результат void

GetEdict() публичный статический Метод

//#define G_EDICT(o) ((edict_t *)((byte *)sv.edicts+ *(int *)&pr_globals[o]))
public static GetEdict ( int parm ) : edict_t
parm int
Результат edict_t

GetFloat() публичный статический Метод

G_FLOAT(o)
public static GetFloat ( int parm ) : float
parm int
Результат float

GetInt() публичный статический Метод

G_INT(o)
public static GetInt ( int parm ) : int
parm int
Результат int

GetString() публичный статический Метод

//#define G_STRING(o) (pr_strings + *(string_t *)&pr_globals[o])
public static GetString ( int parm ) : string
parm int
Результат string

GetVector() публичный статический Метод

G_VECTOR(o)
public static GetVector ( int parm ) : float*
parm int
Результат float*

PF_changeyaw() публичный статический Метод

public static PF_changeyaw ( ) : void
Результат void

ReturnEdict() публичный статический Метод

RETURN_EDICT(e) (((int *)pr_globals)[OFS_RETURN] = EDICT_TO_PROG(e))
public static ReturnEdict ( edict_t e ) : void
e edict_t
Результат void

ReturnFloat() публичный статический Метод

G_FLOAT(OFS_RETURN) = value
public static ReturnFloat ( float value ) : void
value float
Результат void

ReturnInt() публичный статический Метод

G_INT(OFS_RETURN) = value
public static ReturnInt ( int value ) : void
value int
Результат void

ReturnVector() публичный статический Метод

G_VECTOR(OFS_RETURN) = value
public static ReturnVector ( Vector3 &value ) : void
value Vector3
Результат void

ReturnVector() публичный статический Метод

G_VECTOR(OFS_RETURN) = value
public static ReturnVector ( v3f &value ) : void
value v3f
Результат void