MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / VoteMission

Method VoteMission

engine/Poseidon/Network/NetworkClientActions.cpp:1428–1439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426 msg.type = NCMTMission;
1427 msg.content.WriteString(mission);
1428 msg.content.Write(&cadetMode, sizeof(bool));
1429 SendMsg(&msg, NMFGuaranteed);
1430 }
1431 _selectMission = false;
1432 _voteMission = false;
1433}
1434
1435void NetworkClient::VoteMission(RString mission, bool cadetMode)
1436{
1437 NetworkCommandMessage msg;
1438 msg.type = NCMTVote;
1439 int subtype = NCMTMission;
1440 msg.content.Write(&subtype, sizeof(int));
1441 msg.content.WriteString(mission);
1442 msg.content.Write(&cadetMode, sizeof(bool));

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected