프로퍼티 | 타입 | 설명 | |
---|---|---|---|
GlobalStruct | |||
Trace | bool | ||
xFunction |
메소드 | 설명 | |
---|---|---|
AllocString ( ) : int | ||
EdictFromAddr ( int addr, int &ofs ) : |
||
Execute ( int fnum ) : void |
PR_ExecuteProgram
|
|
GetEdictFieldFloat ( |
||
GetString ( int strId ) : string | ||
Init ( ) : void | ||
LoadFromFile ( string data ) : void |
ED_LoadFromFile The entities are directly placed in the array, rather than allocated with ED_Alloc, because otherwise an error loading the map would have entity number references out of order. Creates a server's entity / program execution context by parsing textual entity definitions out of an ent file. Used for both fresh maps and savegame loads. A fresh map would also need to call ED_CallSpawnFunctions () to let the objects initialize themselves.
|
|
LoadProgs ( ) : void |
PR_LoadProgs
|
|
NewString ( string s ) : int |
Like ED_NewString but returns string id (string_t)
|
|
ParseEdict ( string data, |
ED_ParseEdict Parses an edict out of the given string, returning the new position ed should be a properly initialized empty edict. Used for initial level load and for savegames.
|
|
ParseGlobals ( string data ) : void |
ED_ParseGlobals
|
|
Print ( |
ED_Print For debugging
|
|
PrintEdicts ( ) : void | ||
PrintNum ( int ent ) : void |
ED_PrintNum
|
|
RunError ( string fmt ) : void |
PR_RunError Aborts the currently executing function
|
|
SameName ( int name1, string name2 ) : bool | ||
SetEdictFieldFloat ( |
||
SetString ( int id, string value ) : void | ||
StringOffset ( string value ) : int | ||
WriteEdict ( |
ED_Write
|
|
WriteGlobals ( |
ED_WriteGlobals
|
메소드 | 설명 | |
---|---|---|
CachedSearch ( |
||
EdictCount ( ) : void | ||
EnterFunction ( |
PR_EnterFunction Returns the new program statement counter
|
|
FindField ( int ofs ) : |
ED_FieldAtOfs
|
|
FindField ( string name ) : |
ED_FindField
|
|
FindFunction ( string name ) : |
ED_FindFunction
|
|
FindGlobal ( string name ) : |
ED_FindGlobal
|
|
FreeHandles ( ) : void | ||
Get ( int offset ) : void* |
Mimics G_xxx macros But globals are split too, so we must check offset and choose GlobalStruct or _Globals
|
|
GetInt32 ( int offset ) : int | ||
GlobalAtOfs ( int ofs ) : |
ED_GlobalAtOfs
|
|
GlobalString ( int ofs ) : string |
PR_GlobalString Returns a string with a description and the contents of a global, padded to 20 field width
|
|
GlobalStringNoContents ( int ofs ) : string |
PR_GlobalStringNoContents
|
|
IndexOfField ( int ofs ) : int | ||
IndexOfField ( string name ) : int | ||
IndexOfFunction ( string name ) : int | ||
IsEmptyField ( int type, int v ) : bool | ||
IsGlobalStruct ( int ofs, int &offset ) : bool |
Returns true if ofs is inside GlobalStruct or false if ofs is in _Globals Out parameter offset is set to correct offset inside either GlobalStruct or _Globals
|
|
IsStaticString ( int stringId, int &offset ) : bool | ||
LeaveFunction ( ) : int |
PR_LeaveFunction
|
|
MakeAddr ( int prog, int offset ) : int | ||
MakeStingId ( int index, bool isStatic ) : int | ||
ParseGlobalPair ( |
||
ParsePair ( |
Since memory block containing original edict_t plus additional data is split into two fiels - edict_t.v and edict_t.fields we must check key.ofs to choose between thistwo parts. Warning: Key offset is in integers not bytes!
|
|
ParsePair ( void value, |
ED_ParseEpair Can parse either fields or globals returns false if error Uze: Warning! value pointer is already with correct offset (value = base + key.ofs)!
|
|
PrintEdict_f ( ) : void |
ED_PrintEdict_f For debugging, prints a single edict
|
|
PrintStatement ( |
PR_PrintStatement
|
|
Profile_f ( ) : void | ||
Set ( int offset, int value ) : void | ||
StackTrace ( ) : void |
PR_StackTrace
|
|
Test5_f ( ) : void | ||
UglyValueString ( etype_t type, |
PR_UglyValueString Returns a string describing *data in a type specific manner Easier to parse than PR_ValueString
|
|
ValueString ( etype_t type, void val ) : string |
PR_ValueString
|
public static EdictFromAddr ( int addr, int &ofs ) : |
||
addr | int | |
ofs | int | |
리턴 |
public static GetEdictFieldFloat ( |
||
ed | ||
field | string | |
defValue | float | |
리턴 | float |
public static ParseEdict ( string data, |
||
data | string | |
ent | ||
리턴 | string |
public static SameName ( int name1, string name2 ) : bool | ||
name1 | int | |
name2 | string | |
리턴 | bool |
public static SetEdictFieldFloat ( |
||
ed | ||
field | string | |
value | float | |
리턴 | bool |
public static SetString ( int id, string value ) : void | ||
id | int | |
value | string | |
리턴 | void |
public static WriteEdict ( |
||
writer | ||
ed | ||
리턴 | void |
public static WriteGlobals ( |
||
writer | ||
리턴 | void |