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

Function GetDisplayName

Source/GUI/dimgui/dimgui.cpp:822–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820#include <Objects/navmeshconnectionobject.h>
821
822void GetDisplayName(Object* obj, std::vector<char>& buffer) {
823 char temp[512];
824 temp[0] = '\0';
825 if (!obj->GetName().empty()) {
826 sprintf(temp, "%d, ", obj->GetID());
827 }
828 obj->GetDisplayName(temp + strlen(temp), 512);
829 size_t length = strlen(temp) + 1;
830 size_t old_size = buffer.size();
831 buffer.resize(old_size + length);
832 memcpy(buffer.data() + old_size, temp, length);
833}
834
835static void PrintConnections(MovementObject* mov,
836 const char* name,

Callers 1

DrawObjectInfoFlatFunction · 0.85

Calls 7

emptyMethod · 0.45
GetNameMethod · 0.45
GetIDMethod · 0.45
GetDisplayNameMethod · 0.45
sizeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected