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

Method WriteNavMeshConnectionDataVec

Source/Game/EntityDescription.cpp:1406–1413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1404}
1405
1406void EntityDescriptionField::WriteNavMeshConnectionDataVec(const std::vector<NavMeshConnectionData>& val) {
1407 int32_t val_size = (int32_t)val.size();
1408 memwrite(&val_size, sizeof(int32_t), 1, data);
1409 for (int i = 0; i < val_size; ++i) {
1410 const NavMeshConnectionData& nmcd = val[i];
1411 MemWriteNavMeshConnectionData(nmcd, data);
1412 }
1413}
1414
1415void EntityDescriptionField::ReadString(std::string* str) const {
1416 str->assign(data.begin(), data.end());

Callers 3

LocalizeIDsFunction · 0.80

Calls 3

memwriteFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected