MCPcopy Create free account
hub / github.com/RSDKModding/RSDKv4-Decompilation / ReceiveValue

Function ReceiveValue

RSDKv4/Userdata.cpp:1094–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1092 }
1093}
1094void ReceiveValue(int *value, int *incrementPos)
1095{
1096 // PrintLog("Attempting to receive value (%d) (%d)", *incrementPos, *value);
1097
1098 if (Engine.onlineActive && receiveReady) {
1099 // receiveReady = false;
1100 if (*incrementPos == 1) {
1101 if (matchValueReadPos != matchValueWritePos) {
1102 *value = matchValueData[matchValueReadPos];
1103 matchValueReadPos++;
1104 }
1105 }
1106 else {
1107 *value = matchValueData[matchValueReadPos];
1108 }
1109 }
1110}
1111void TransmitGlobal(int *globalValue, const char *globalName)
1112{
1113 PrintLog("Attempting to transmit global (%s) (%d)", globalName, *globalValue);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected