MCPcopy
hub / github.com/4ian/GDevelop / sendVariableCustomMessage

Function sendVariableCustomMessage

Extensions/Multiplayer/messageManager.ts:1438–1449  ·  view source on GitHub ↗
(
      userMessageName: string,
      variable: gdjs.Variable
    )

Source from the content-addressed store, hash-verified

1436 };
1437
1438 const sendVariableCustomMessage = (
1439 userMessageName: string,
1440 variable: gdjs.Variable
1441 ) => {
1442 const userMessageData = variable.toJSObject();
1443 debugLogger.info(
1444 `Sending custom message ${userMessageName} with data ${JSON.stringify(
1445 userMessageData
1446 )}.`
1447 );
1448 sendCustomMessage(userMessageName, userMessageData);
1449 };
1450
1451 const hasCustomMessageBeenReceived = (userMessageName: string) => {
1452 const customMessageName =

Callers

nothing calls this directly

Calls 3

sendCustomMessageFunction · 0.85
infoMethod · 0.80
toJSObjectMethod · 0.45

Tested by

no test coverage detected