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

Method AddEntityType

Source/Game/EntityDescription.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void EntityDescription::AddEntityType(EntityDescriptionFieldType type, const EntityType& val) {
80 AddType(type);
81 int the_type = val;
82 memwrite(&the_type, sizeof(int), 1, fields.back().data);
83}
84
85void EntityDescription::AddIntVec(EntityDescriptionFieldType type, const std::vector<int>& val) {
86 AddType(type);

Callers 9

LoadGenericEntityFunction · 0.80
GetDescMethod · 0.80
GetDescMethod · 0.80
LoadActorFromXMLFunction · 0.80
LoadHotspotFromXMLFunction · 0.80

Calls 2

memwriteFunction · 0.85
backMethod · 0.45

Tested by

no test coverage detected