Exemplo n.º 1
0
        public virtual void serverCmdMissionStartPhase1Ack(GameConnection client, int seq)
        {
            // Make sure to ignore calls from a previous mission load
            if (seq != iGlobal["$missionSequence"] || !bGlobal["$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"]);
        }