コード例 #1
0
ファイル: FdkWrapper.cs プロジェクト: hombrevrc/FDK
        public bool Connect()
        {
            ConnectLogic.SetupPathsAndConnect(Path);
            ConnectLogic.Feed.CacheInitialized += OnCacheInitialize;
            ConnectLogic.Feed.SessionInfo      += OnSessionInfo;
            ConnectLogic.Feed.SymbolInfo       += OnSymbolInfo;
            ConnectLogic.Feed.Logon            += OnLogon;
            ConnectLogic.Feed.Logout           += OnLogout;

            var connectionSuccessful = ConnectLogic.DoConnect();

            if (!connectionSuccessful)
            {
                Log.Warn("");
                return(false);
            }
            var start = DateTime.Now;

            while (!IsConnected && (DateTime.Now - start).Seconds < 15)
            {
                Thread.Sleep(100);
            }

            return(IsConnected);
        }
コード例 #2
0
ファイル: LabyrinthSprawl.cs プロジェクト: Glycer/Bridge
    //LevelPrefabs levelPrefabs;

    // Use this for initialization
    void Start()
    {
        connectLogic = GetComponent <ConnectLogic>();
        //levelPrefabs = GetComponent<LevelPrefabs>();

        Generate();
    }
コード例 #3
0
 public void Disconnect()
 {
     if (!IsConnected)
     {
         return;
     }
     //_logger.Warn("FdkConnector.Disconnecting");
     ConnectLogic.Dispose();
     IsConnected = false;
 }
コード例 #4
0
ファイル: FdkWrapper.cs プロジェクト: hombrevrc/FDK
        public void SetupBuilder()
        {
            if (IsConnected)
            {
                ConnectLogic.Disconnect();
                IsConnected = false;
            }
            ConnectLogic = new FdkConnectLogic(Address, Login, Password)
            {
                RootPath = Path
            };

            ConnectLogic.TradeWrapper.SetupBuilder(Address, Login, Password, this.Path);
        }
コード例 #5
0
 private void Start()
 {
     connectLogic = GetComponent <ConnectLogic>();
     levelPrefabs = GetComponent <LevelPrefabs>();
 }