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

Method ReadTypeString

Source/Editors/actors_editor.cpp:864–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862}
863
864bool TypeEnable::ReadTypeString(EntityType type) {
865 char buffer[128];
866 FormatString(buffer, 128, "type_enabled_%s_%s", config_postfix, CStringFromEntityType(type));
867 if (config.HasKey(buffer)) {
868 return config[buffer].toBool();
869 } else {
870 return unknown_types_enabled_;
871 }
872}
873
874void TypeEnable::WriteTypeString(EntityType type) const {
875 char buffer[128];

Callers

nothing calls this directly

Calls 4

FormatStringFunction · 0.85
CStringFromEntityTypeFunction · 0.85
HasKeyMethod · 0.80
toBoolMethod · 0.80

Tested by

no test coverage detected