MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / GetObjectTypeName

Function GetObjectTypeName

roomedit/source/names.cpp:407–433  ·  view source on GitHub ↗

get the name of an object type */

Source from the content-addressed store, hash-verified

405 get the name of an object type
406*/
407const char *GetObjectTypeName (SHORT objtype)
408{
409 switch (objtype)
410 {
411 case OBJ_THINGS:
412 return "Thing";
413 case OBJ_LINEDEFS:
414 return "LineDef";
415 case OBJ_SIDEDEFS:
416 return "SideDef";
417 case OBJ_VERTEXES:
418 return "Vertex";
419 case OBJ_SEGS:
420 return "Segment";
421 case OBJ_SSECTORS:
422 return "SSector";
423 case OBJ_NODES:
424 return "Node";
425 case OBJ_SECTORS:
426 return "Sector";
427 case OBJ_REJECT:
428 return "Reject";
429 case OBJ_BLOCKMAP:
430 return "Blockmap";
431 }
432 return "< Bug! >";
433}
434
435/*
436 get the name of an object type (plurial)

Callers 4

CmSearchJumpMethod · 0.85
CheckSelectionMethod · 0.85
CmMiscRotateScaleMethod · 0.85
AddObjectTypeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected