MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetEditableField

Method GetEditableField

Source/Game/EntityDescription.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113EntityDescriptionField* EntityDescription::GetEditableField(EntityDescriptionFieldType type) {
114 for (auto& field : fields) {
115 if (field.type == type) {
116 return &field;
117 }
118 }
119 return NULL;
120}
121
122void EntityDescription::AddScriptParams(EntityDescriptionFieldType type, const ScriptParamMap& val) {
123 AddType(type);

Callers 3

ExtractFlatListFunction · 0.80
SetDescIDFunction · 0.80
ClearDescIDFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected