protected void SavePlayersPosition() { for (int i = 0; i < GameModeData.CurrentPlayers.Count; i++) { Client player = GameModeData.CurrentPlayers[i]; GamePosition gamePosition = new GamePosition(); gamePosition.SetPosition(player.Position); gamePosition.Heading = player.Heading; GameModeData.PlayerPositions.Insert(i, gamePosition); } }