MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / FindType

Method FindType

neo/game/script/Script_Program.cpp:1185–1197  ·  view source on GitHub ↗

============ idProgram::FindType Returns a preexisting complex type that matches the name, or returns NULL if not found ============ */

Source from the content-addressed store, hash-verified

1183============
1184*/
1185idTypeDef *idProgram::FindType( const char *name ) {
1186 idTypeDef *check;
1187 int i;
1188
1189 for( i = types.Num() - 1; i >= 0; i-- ) {
1190 check = types[ i ];
1191 if ( !strcmp( check->Name(), name ) ) {
1192 return check;
1193 }
1194 }
1195
1196 return NULL;
1197}
1198
1199/*
1200============

Callers 15

CacheDictionaryMediaMethod · 0.45
FindEntityDefMethod · 0.45
SpawnMethod · 0.45
SpawnMethod · 0.45
GibMethod · 0.45
SpawnMethod · 0.45
SetupMethod · 0.45
GetWeaponDefMethod · 0.45
LaunchMethod · 0.45
KillTargetMethod · 0.45
FizzleMethod · 0.45

Calls 2

NumMethod · 0.45
NameMethod · 0.45

Tested by 1

TestModel_fMethod · 0.36