Пример #1
0
        public TopDownRpgScene(ViewportAdapter viewPort, SpriteBatch spriteBatch)
        {
            _viewPort         = viewPort;
            _spriteBatch      = spriteBatch;
            BattleProbability = 12;
            Move moveDelegate = (entity, point) => OpenWorldGameMode.BeginMoveTo(entity, point);

            _entityManager = new EntityManager(moveDelegate);
            var gameModeController = new GameModeController
            {
                PushGameModeDelegate = mode => GameModes.Push(mode),
                PopGameModeDelegate  = () => GameModes.Pop()
            };
            Say say = story => OpenWorldGameMode.DialogBox.StartStory(story);

            _storyEngine = new StoryEngine(gameModeController, moveDelegate, LoadOpenWorld, say);
        }