MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / stringForCustomObject

Function stringForCustomObject

src/modules/scripting-ui/hooks/GameManager.cpp:43–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 $override
44 gd::string stringForCustomObject(int id) {
45 auto type = globed::classifyObjectId(id);
46 using enum globed::ScriptObjectType;
47
48 switch (type) {
49 case None: {
50 return GameManager::stringForCustomObject(id);
51 } break;
52
53 case FireServer: {
54 // -1846870015 is the mask thing
55 return ObjectStringBuilder{}
56 .objectId(3620)
57 .x(525)
58 .y(75)
59 .prop(36, 1)
60 .prop(476, -16777216)
61 .prop(479, 1)
62 .prop(483, 1)
63 .prop(482, -1846870015)
64 .build();
65 } break;
66
67 case EmbeddedScript: {
68 return ObjectStringBuilder{}
69 .objectId(914)
70 .x(585)
71 .y(105)
72 .prop(31, "R0xPQkVEX1NDUklQVADEGXv6IwAAACi1L_0gIxkBAAAKAHNjcmlwdC5sdWERAAAALS0gWW91ciBjb2RlIGhlcmUA")
73 .build();
74 } break;
75
76 default: break;
77 }
78
79 return "";
80 }
81};

Callers

nothing calls this directly

Calls 2

classifyObjectIdFunction · 0.85
buildMethod · 0.80

Tested by

no test coverage detected