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

Function CStringFromEntityType

Source/Editors/entity_type.cpp:26–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "entity_type.h"
25
26const char* CStringFromEntityType(EntityType type) {
27 switch (type) {
28 case _any_type:
29 return "_any_type";
30 case _no_type:
31 return "_no_type";
32 case _camera_type:
33 return "_camera_type";
34 case _terrain_type:
35 return "_terrain_type";
36 case _env_object:
37 return "_env_object";
38 case _movement_object:
39 return "_movement_object";
40 case _spawn_point:
41 return "_spawn_point";
42 case _decal_object:
43 return "_decal_object";
44 case _hotspot_object:
45 return "_hotspot_object";
46 case _group:
47 return "_editable_entity_group";
48 case _prefab:
49 return "_prefab";
50 case _rigged_object:
51 return "_rigged_object";
52 case _item_object:
53 return "_item_object";
54 case _path_point_object:
55 return "_path_point_object";
56 case _ambient_sound_object:
57 return "_ambient_sound_object";
58 case _placeholder_object:
59 return "_placeholder_object";
60 case _light_probe_object:
61 return "_light_probe_object";
62 case _dynamic_light_object:
63 return "_dynamic_light_object";
64 case _navmesh_hint_object:
65 return "_navmesh_hint_object";
66 case _navmesh_region_object:
67 return "_navmesh_region_object";
68 case _navmesh_connection_object:
69 return "_navmesh_connection_object";
70 case _reflection_capture_object:
71 return "_reflection_capture_object";
72 case _light_volume_object:
73 return "_light_volume_object";
74 default:
75 return "unknown type";
76 }
77}

Callers 9

addObjectMethod · 0.85
DrawMethod · 0.85
UpdateMethod · 0.85
DumpStateMethod · 0.85
DrawObjInfoFunction · 0.85
ReadTypeStringMethod · 0.85
WriteTypeStringMethod · 0.85
GetDisplayNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected