Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Controls/StartGameControl.js
/** | /** | ||||
* Cheat prevention: | * Cheat prevention: | ||||
* | * | ||||
* 1. Ensure that the host cannot start the game unless all clients agreed on the game settings using the ready system. | * 1. Ensure that the host cannot start the game unless all clients agreed on the game settings using the ready system. | ||||
* | * | ||||
* TODO: | * TODO: | ||||
* 2. Ensure that the host cannot start the game with GameAttributes different from the agreed ones. | * 2. Ensure that the host cannot start the game with InitAttributes different from the agreed ones. | ||||
* This may be achieved by: | * This may be achieved by: | ||||
* - Determining the seed collectively. | * - Determining the seed collectively. | ||||
* - passing the agreed game settings to the engine when starting the game instance | * - passing the agreed game settings to the engine when starting the game instance | ||||
* - rejecting new game settings from the server after the game launch event | * - rejecting new game settings from the server after the game launch event | ||||
*/ | */ | ||||
class StartGameControl | class StartGameControl | ||||
{ | { | ||||
constructor(netMessages) | constructor(netMessages) | ||||
Show All 38 Lines |
Wildfire Games · Phabricator