Exemple #1
0
    //string firstLoadDataPath = "Assets/StreamingAssets/" + Launcher.instance.GetSceneName + "/firstLoad_";


    public LocalServer(CloudSocket cloudSocket, CTSMarker ctsMarker)
    {
        mCloudSocket = cloudSocket;

        mCTSMarker = ctsMarker;

        switch (Launcher.instance.GIMode)
        {
        case eGiMode.Enlighten:
            mRadianceCollector = new EnlightenRadianceCollector();
            break;

        case eGiMode.RSM:
            break;

        case eGiMode.LPV:
            break;

        case eGiMode.Visible:
            mRadianceCollector = new VisibleRadianceCollector();
            break;
        }

        mRadianceCollector.Setup();
        GetReuseDataFile();
    }
    public CloudConnection(CloudSocket cloudSocket)
    {
        mCloudSocket = cloudSocket;

        mLocalServer = new LocalServer(cloudSocket);

        mRemoteClient = new RemoteClient(cloudSocket);
    }
    public CloudConnection(CloudSocket cloudSocket, CTSMarker cTSMarker)
    {
        mCloudSocket = cloudSocket;

        mCTSMarker = cTSMarker;

        mLocalServer = new LocalServer(cloudSocket, cTSMarker);

        mRemoteClient = new RemoteClient(cloudSocket);
    }
    public void BuildConnection(CloudSocket cloudSocket, CTSMarker ctsMarker)
    {
        CloudConnection cloudConnection = new CloudConnection(cloudSocket);

        mCloudConnections.Add(cloudConnection);

        mMarkerToCloudConnectionMap.Add(ctsMarker, cloudConnection);

        mTcpToCloudSocketMap.Add(ctsMarker, cloudSocket);
        mCloudToTcpSocketMap.Add(cloudSocket, ctsMarker);
    }
    public void BuildConnection(CloudSocket cloudSocket, CTSMarker ctsMarker)
    {
        CloudConnection cloudConnection = new CloudConnection(cloudSocket, ctsMarker);

        mCloudConnections.Add(cloudConnection);

        mMarkerToCloudConnectionMap.Add(ctsMarker, cloudConnection);

        mTcpToCloudSocketMap.Add(ctsMarker, cloudSocket);
        mCloudToTcpSocketMap.Add(cloudSocket, ctsMarker);

        //1751578
        string recordPath = Application.streamingAssetsPath + "/" + Launcher.instance.GetSceneName + "/history.txt";

        Launcher.instance.history.getPath(recordPath);
        Launcher.instance.history.NewPath(ctsMarker.sessionId);
        //1751578
    }
Exemple #6
0
    public LocalServer(CloudSocket cloudSocket)
    {
        mCloudSocket = cloudSocket;

        switch (Launcher.instance.GIMode)
        {
        case eGiMode.Enlighten:
            mRadianceCollector = new EnlightenRadianceCollector();
            break;

        case eGiMode.RSM:
            break;

        case eGiMode.LPV:
            break;
        }

        mRadianceCollector.Setup();
    }
Exemple #7
0
    void ListenClientConnect()
    {
        while (true)
        {
            Socket clientSocket = mListenServerSocket.Accept();

            if (clientSocket != null)
            {
                //mClientSockets.Add(new TcpSocket<XPacket>(clientSocket, HandleReceiveData));

                TcpSocket <XPacket> tcpSocket   = new TcpSocket <XPacket>(clientSocket, HandleReceiveData);
                CloudSocket         cloudSocket = new CloudSocket();

                mClientSockets.Add(tcpSocket);

                // Add new Cloud connection
                Launcher.instance.connectionMgr.BuildConnection(cloudSocket, new CTSMarker(tcpSocket, null));
            }
        }
    }
 public RemoteClient(CloudSocket cloudSocket)
 {
     mCloudSocket = cloudSocket;
 }