MCPcopy Create free account
hub / github.com/ZDoom/gzdoom / DEFINE_CLASS_PROPERTY

Function DEFINE_CLASS_PROPERTY

src/scripting/thingdef_properties.cpp:1191–1202  ·  view source on GitHub ↗

========================================================================== ==========================================================================

Source from the content-addressed store, hash-verified

1189//
1190//==========================================================================
1191DEFINE_CLASS_PROPERTY(restrictedto, Ssssssssssssssssssss, Inventory)
1192{
1193 auto restrictarray = (TArray<PClassActor*>*)defaults->ScriptVar(NAME_RestrictedToPlayerClass, nullptr);
1194
1195 restrictarray->Clear();
1196 for(int i = 0;i < PROP_PARM_COUNT;++i)
1197 {
1198 PROP_STRING_PARM(n, i);
1199 if (*n != 0)
1200 restrictarray->Push(FindClassTentative(n, RUNTIME_CLASS(AActor)));
1201 }
1202}
1203
1204//==========================================================================
1205//

Callers 1

Calls 7

FindClassTentativeFunction · 0.85
SetIconFunction · 0.85
MatchStringFunction · 0.85
I_ErrorFunction · 0.85
ScriptVarMethod · 0.80
ClearMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected