@@ -58,7 +58,7 @@ class Server
5858 * @var int
5959 */
6060 public $ queue ;
61-
61+
6262 /**
6363 * Max player count
6464 * @var int
@@ -71,23 +71,57 @@ class Server
7171 */
7272 public $ speedLimiter ;
7373
74+ /**
75+ * Collisions
76+ * @var bool
77+ */
78+ public $ collisions ;
79+
80+ /**
81+ * Will cars be available for all players
82+ * @var bool
83+ */
84+ public $ carsForPlayers ;
85+
86+ /**
87+ * Will police cars be available for all players
88+ * @var bool
89+ */
90+ public $ policeCarsForPlayers ;
91+
92+ /**
93+ * "Away from keyboard" status
94+ * @var bool
95+ */
96+ public $ afkEnabled ;
97+
98+ /**
99+ * Sync delay (tick rate)
100+ * @var bool
101+ */
102+ public $ syncDelay ;
103+
74104 /**
75105 * Server constructor.
76106 * @param $server
77107 */
78108 public function __construct ($ server )
79109 {
80- $ this ->id = intval ($ server ['id ' ]);
81- $ this ->game = $ server ['game ' ];
82- $ this ->ip = $ server ['ip ' ];
83- $ this ->port = intval ($ server ['port ' ]);
84- $ this ->name = $ server ['name ' ];
85- $ this ->shortName = $ server ['shortname ' ];
86- $ this ->online = boolval ($ server ['online ' ]);
87- $ this ->players = intval ($ server ['players ' ]);
88- $ this ->queue = intval ($ server ['queue ' ]);
89- $ this ->maxPlayers = intval ($ server ['maxplayers ' ]);
90- $ this ->speedLimiter = boolval ($ server ['speedlimiter ' ]);
91-
110+ $ this ->id = intval ($ server ['id ' ]);
111+ $ this ->game = $ server ['game ' ];
112+ $ this ->ip = $ server ['ip ' ];
113+ $ this ->port = intval ($ server ['port ' ]);
114+ $ this ->name = $ server ['name ' ];
115+ $ this ->shortName = $ server ['shortname ' ];
116+ $ this ->online = boolval ($ server ['online ' ]);
117+ $ this ->players = intval ($ server ['players ' ]);
118+ $ this ->queue = intval ($ server ['queue ' ]);
119+ $ this ->maxPlayers = intval ($ server ['maxplayers ' ]);
120+ $ this ->speedLimiter = boolval ($ server ['speedlimiter ' ]);
121+ $ this ->collisions = boolval ($ server ['collisions ' ]);
122+ $ this ->carsForPlayers = boolval ($ server ['carsforplayers ' ]);
123+ $ this ->policeCarsForPlayers = boolval ($ server ['policecarsforplayers ' ]);
124+ $ this ->afkEnabled = boolval ($ server ['afkenabled ' ]);
125+ $ this ->syncDelay = intval ($ server ['syncdelay ' ]);
92126 }
93127}
0 commit comments