コード例 #1
0
        private void Leader_LocationChanged(object sender, EventArgs e)
        {
            if (Time != null)//not on an initialization
            {
                UpdateVisibleTiles();
                SetupLevelConnectors();

                CurrentLevel = ActiveLevels.Single(x => x.LevelIndex == Leader.Location.Tile.LevelIndex);
            }
        }
コード例 #2
0
        private void CurrentPlayer_LocationChanged(object sender, EventArgs e)
        {
            if (Time != null)//not on an initialization
            {
                UpdateVisibleTiles();

                foreach (var t in currentVisibleTiles)
                {
                    var connector = t as ILevelConnector;
                    if (connector != null)
                    {
                        ConnectLevels(connector);
                    }
                }

                CurrentLevel = ActiveLevels.Single(x => x.LevelIndex == Theron.Location.LevelIndex);
            }
        }