Esempio n. 1
0
        public void ServerCmdMissionStartPhase1Ack(coGameConnection client, string seq)
        {
            // Make sure to ignore calls from a previous mission load
            if (seq != sGlobal["$missionSequence"] || !missionRunning)
            {
                return;
            }
            if (client["currentPhase"].AsDouble() != 0.0)
            {
                return;
            }

            client["currentPhase"] = "1";
            // Start with the CRC

            client.setMissionCRC(iGlobal["$missionCRC"]);

            // Send over the datablocks...
            // OnDataBlocksDone will get called when have confirmation
            // that they've all been received.
            console.print("Transmitting Datablocks");
            client.transmitDataBlocks(iGlobal["$missionSequence"]);
        }