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

Method GetField

Source/Game/EntityDescription.cpp:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95const EntityDescriptionField* EntityDescription::GetField(EntityDescriptionFieldType type) const {
96 for (const auto& field : fields) {
97 if (field.type == type) {
98 return &field;
99 }
100 }
101 return NULL;
102}
103
104EntityDescriptionField* EntityDescription::GetField(EntityDescriptionFieldType type) {
105 for (auto& field : fields) {

Callers 8

LoadLevelMethod · 0.80
LocalizeIDsFunction · 0.80
SetFromDescMethod · 0.80
SetFromDescMethod · 0.80
ASReadStringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected