コード例 #1
0
        void OnEnable()
        {
            Bootstrap.AddSimSystem <GenerateMapSystem>();

            Bootstrap.AddSimSystem <MapInputSystem>();
            Bootstrap.AddSimSystem <VisibilitySystem>();

            Bootstrap.AddRenderSystem <RenderSystem>();

            Bootstrap.AddSimSystem <MoveSystem>();

            Bootstrap.AddSimSystem <ChangeMonsterCountSystem>();

            var turnSystem = Bootstrap.AddSimSystem <GameTurnSystem>();

            turnSystem.AddTurnActionSystem <PlayerTurnSystem>();
            turnSystem.AddTurnActionSystem <MonsterTurnSystem>();
        }
コード例 #2
0
        void OnEnable()
        {
            Bootstrap.AddInitSystem <TurnBeginSystem>();

            Bootstrap.AddSimSystem <PlayerTurnSystem>();
            Bootstrap.AddSimSystem <MonsterTurnSystem>();

            Bootstrap.AddSimSystem <MapInputSystem>();
            Bootstrap.AddSimSystem <GenerateMapSystem>();
            Bootstrap.AddSimSystem <UpdateMapStateSystem>();
            Bootstrap.AddSimSystem <VisibilitySystem>();

            Bootstrap.AddSimSystem <ChangeMonsterCountSystem>();

            Bootstrap.AddLateSimSystem <CombatSystem>();
            Bootstrap.AddLateSimSystem <DeathSystem>();
            Bootstrap.AddLateSimSystem <TurnEndSystem>();

            Bootstrap.AddRenderSystem <RenderSystem>();
        }