示例#1
0
        // Token: 0x060014B6 RID: 5302 RVA: 0x0002318C File Offset: 0x0002218C
        protected override WorkflowElement CreateBody()
        {
            StateGraph            stateGraph = new StateGraph("BasicPursuitFlow");
            State                 state      = new State("running");
            State                 state2     = new State("done");
            EnableLoadingScreen   item       = new EnableLoadingScreen(true);
            RelaySync             item2      = new RelaySync(0.1f);
            LoadBlackBoards       item3      = new LoadBlackBoards(base.InstancedEvent, BlackBoardFlag.kBlackBoardFlag_Running);
            BeginEventSecurity    item4      = new BeginEventSecurity();
            FlushCops             item5      = new FlushCops();
            PrimeCopVehicleCache  item6      = new PrimeCopVehicleCache(base.InstancedEvent, Hash.Hash32("copsuv"), 12);
            PrimeCopVehicleCache  item7      = new PrimeCopVehicleCache(base.InstancedEvent, Hash.Hash32("copcarmus08gh"), 4);
            SpawnCops             item8      = new SpawnCops(base.InstancedEvent);
            AddOpponents          item9      = new AddOpponents(base.InstancedEvent);
            WaitForOpponentsReady item10     = new WaitForOpponentsReady(base.InstancedEvent, 0.1f);
            PrepareGrid           item11     = new PrepareGrid(base.InstancedEvent);
            CommitAllAssets       item12     = new CommitAllAssets();
            PlaceAtLocators       item13     = new PlaceAtLocators(base.InstancedEvent);
            EnableHud             item14     = new EnableHud(base.InstancedEvent, EnableHud.HudToggle.Enable);

            GameCore.Activities.Event.Components.AssignPowerupConfiguration item15 = new GameCore.Activities.Event.Components.AssignPowerupConfiguration(base.InstancedEvent);
            Running <EntrantPursuit> activity = new Running <EntrantPursuit>(base.InstancedEvent, new string[]
            {
                "Entrants.Loading"
            });
            PerfectLaunchAchieved activity2 = new PerfectLaunchAchieved(base.InstancedEvent, Ports.Gameplay);
            CleanupEvent          item16    = new CleanupEvent(base.InstancedEvent);
            CleanupGrid           item17    = new CleanupGrid(base.InstancedEvent);

            state.EnterActivity.Activities.Add(item);
            state.EnterActivity.Activities.Add(item3);
            state.EnterActivity.Activities.Add(item4);
            state.EnterActivity.Activities.Add(item5);
            state.EnterActivity.Activities.Add(item6);
            state.EnterActivity.Activities.Add(item7);
            state.EnterActivity.Activities.Add(item2);
            state.EnterActivity.Activities.Add(item8);
            state.EnterActivity.Activities.Add(item9);
            state.EnterActivity.Activities.Add(item10);
            state.EnterActivity.Activities.Add(item11);
            state.EnterActivity.Activities.Add(item12);
            state.EnterActivity.Activities.Add(item13);
            state.EnterActivity.Activities.Add(item14);
            state.EnterActivity.Activities.Add(item15);
            state.Transitions.Add(new Transition(activity2));
            state.Transitions.Add(new Transition("done", activity));
            state2.EnterActivity.Activities.Add(item16);
            state2.EnterActivity.Activities.Add(item17);
            stateGraph.InitialState = "running";
            stateGraph.DoneState    = "done";
            stateGraph.States.Add(state);
            stateGraph.States.Add(state2);
            return(stateGraph);
        }
示例#2
0
        // Token: 0x060014BC RID: 5308 RVA: 0x00023A64 File Offset: 0x00022A64
        protected override WorkflowElement CreateBody()
        {
            StateGraph                 stateGraph = new StateGraph("TeamEscapeFlow");
            State                      state      = new State("running");
            State                      state2     = new State("loading");
            State                      state3     = new State("disconnected");
            State                      state4     = new State("done");
            EnableLoadingScreen        item       = new EnableLoadingScreen(true);
            RelaySync                  item2      = new RelaySync(0.1f);
            BeginEventSecurity         item3      = new BeginEventSecurity();
            LoadBlackBoards            item4      = new LoadBlackBoards(base.InstancedEvent, BlackBoardFlag.kBlackBoardFlag_Loading);
            ActivateReferencedTriggers item5      = new ActivateReferencedTriggers(base.InstancedEvent);
            PlaceRoute                 item6      = new PlaceRoute(base.InstancedEvent);
            FlushTraffic               item7      = new FlushTraffic();
            FlushCops                  item8      = new FlushCops();
            PrimeCopVehicleCache       item9      = new PrimeCopVehicleCache(base.InstancedEvent, Hash.Hash32("copsuv"), 12);
            PrimeCopVehicleCache       item10     = new PrimeCopVehicleCache(base.InstancedEvent, Hash.Hash32("copcarmus08gh"), 4);
            AddOpponents               item11     = new AddOpponents(base.InstancedEvent);
            PadGrid                    item12     = new PadGrid(base.InstancedEvent);
            OrderGrid                  item13     = new OrderGrid(base.InstancedEvent);
            EventBarriers              item14     = new EventBarriers(base.InstancedEvent, true);
            ResolveBarriers            item15     = new ResolveBarriers();
            FinalizeTrackLayout        item16     = new FinalizeTrackLayout(base.InstancedEvent);
            WaitForOpponentsReady      item17     = new WaitForOpponentsReady(base.InstancedEvent, 0.1f);
            PrepareGrid                item18     = new PrepareGrid(base.InstancedEvent);
            CommitAllAssets            item19     = new CommitAllAssets();
            PlaceGrid                  item20     = new PlaceGrid(base.InstancedEvent);
            EnableHud                  item21     = new EnableHud(base.InstancedEvent, EnableHud.HudToggle.Enable);

            GameCore.Activities.Event.Components.AssignPowerupConfiguration item22 = new GameCore.Activities.Event.Components.AssignPowerupConfiguration(base.InstancedEvent);
            OverrideHeat              item23    = new OverrideHeat((float)base.Event.EventDef.InitialHeat());
            ScriptTriggerListener     activity  = new ScriptTriggerListener(base.InstancedEvent, Ports.Gameplay);
            LoadFinalStrikeBlackboard activity2 = new LoadFinalStrikeBlackboard(base.InstancedEvent, Ports.Gameplay, new InternalBlackboardSlot[]
            {
                new InternalBlackboardSlot(BlackBoardChannel.kBlackBoard_Audio, 2580886883u)
            });
            PerfectLaunchAchieved activity3 = new PerfectLaunchAchieved(base.InstancedEvent, Ports.Gameplay);
            SynchronizeOnReceive <OnPerfectLaunchAchieved> activity4 = new SynchronizeOnReceive <OnPerfectLaunchAchieved>(base.InstancedEvent, Ports.Gameplay);
            Running <EntrantTeamEscape> activity5 = new Running <EntrantTeamEscape>(base.InstancedEvent, new string[]
            {
                "Entrants.Countdown",
                "Entrants.Loading"
            });
            CleanupRoute item24 = new CleanupRoute(base.InstancedEvent);
            DeactivateReferencedTriggers item25        = new DeactivateReferencedTriggers(base.InstancedEvent);
            EventBarriers      item26                  = new EventBarriers(base.InstancedEvent, false);
            ResetBarriers      item27                  = new ResetBarriers();
            CleanupTrackLayout item28                  = new CleanupTrackLayout(base.InstancedEvent);
            RemoveAllOpponentsExceptLocalPlayer item29 = new RemoveAllOpponentsExceptLocalPlayer(base.InstancedEvent);
            EnableMinimapTrackLayout            item30 = new EnableMinimapTrackLayout(base.InstancedEvent, true);
            EnableMinimapTrackLayout            item31 = new EnableMinimapTrackLayout(base.InstancedEvent, false);
            CleanupEvent item32 = new CleanupEvent(base.InstancedEvent);
            EnableHud    item33 = new EnableHud(base.InstancedEvent, EnableHud.HudToggle.Dispose);
            CleanupGrid  item34 = new CleanupGrid(base.InstancedEvent);
            CheckOpponentDisconnected activity6 = new CheckOpponentDisconnected(base.InstancedEvent.Manager, false);
            CheckOpponentDisconnected activity7 = new CheckOpponentDisconnected(base.InstancedEvent.Manager, true);

            state2.EnterActivity.Activities.Add(item);
            state2.EnterActivity.Activities.Add(item3);
            state2.EnterActivity.Activities.Add(item4);
            state2.EnterActivity.Activities.Add(item5);
            state2.EnterActivity.Activities.Add(item6);
            state2.EnterActivity.Activities.Add(item8);
            state2.EnterActivity.Activities.Add(item9);
            state2.EnterActivity.Activities.Add(item10);
            state2.EnterActivity.Activities.Add(item2);
            state2.EnterActivity.Activities.Add(item11);
            state2.EnterActivity.Activities.Add(item12);
            state2.EnterActivity.Activities.Add(item13);
            state2.EnterActivity.Activities.Add(item14);
            state2.EnterActivity.Activities.Add(item15);
            state2.EnterActivity.Activities.Add(item16);
            state2.EnterActivity.Activities.Add(item30);
            state2.EnterActivity.Activities.Add(item17);
            state2.EnterActivity.Activities.Add(item18);
            state2.EnterActivity.Activities.Add(item7);
            state2.EnterActivity.Activities.Add(item20);
            state2.EnterActivity.Activities.Add(item19);
            state2.EnterActivity.Activities.Add(item21);
            state2.EnterActivity.Activities.Add(item22);
            state2.EnterActivity.Activities.Add(item23);
            state2.Transitions.Add(new Transition("disconnected", activity7));
            state2.Transitions.Add(new Transition("running", activity6));
            state.Transitions.Add(new Transition(activity));
            state.Transitions.Add(new Transition(activity2));
            state.Transitions.Add(new Transition(activity3));
            state.Transitions.Add(new Transition(activity4));
            state.Transitions.Add(new Transition("done", activity5));
            EnableLoadingScreen item35 = new EnableLoadingScreen(false);

            state3.EnterActivity.Activities.Add(item35);
            state3.Transitions.Add(new Transition("done"));
            state4.EnterActivity.Activities.Add(item33);
            state4.EnterActivity.Activities.Add(item34);
            state4.EnterActivity.Activities.Add(item8);
            state4.EnterActivity.Activities.Add(item25);
            state4.EnterActivity.Activities.Add(item24);
            state4.EnterActivity.Activities.Add(item26);
            state4.EnterActivity.Activities.Add(item27);
            state4.EnterActivity.Activities.Add(item31);
            state4.EnterActivity.Activities.Add(item28);
            state4.EnterActivity.Activities.Add(item29);
            state4.EnterActivity.Activities.Add(item32);
            stateGraph.InitialState = "loading";
            stateGraph.DoneState    = "done";
            stateGraph.States.Add(state2);
            stateGraph.States.Add(state);
            stateGraph.States.Add(state3);
            stateGraph.States.Add(state4);
            return(stateGraph);
        }
        // Token: 0x060014B3 RID: 5299 RVA: 0x00022DD8 File Offset: 0x00021DD8
        protected override WorkflowElement CreateBody()
        {
            StateGraph stateGraph = new StateGraph("BasicMeetingPlaceFlow");
            State      state      = new State("running");
            State      state2     = new State("loading");
            State      state3     = new State("disconnected");
            State      state4     = new State("done");

            new Sequence();
            EnableLoadingScreen   item   = new EnableLoadingScreen(true);
            RelaySync             item2  = new RelaySync(0.1f);
            BeginEventSecurity    item3  = new BeginEventSecurity();
            LoadBlackBoards       item4  = new LoadBlackBoards(base.InstancedEvent, BlackBoardFlag.kBlackBoardFlag_Loading);
            AddOpponents          item5  = new AddOpponents(base.InstancedEvent);
            EventBarriers         item6  = new EventBarriers(base.InstancedEvent, true);
            WaitForOpponentsReady item7  = new WaitForOpponentsReady(base.InstancedEvent, 0.1f);
            CommitAllAssets       item8  = new CommitAllAssets();
            PlaceAtLocators       item9  = new PlaceAtLocators(base.InstancedEvent);
            EnableHud             item10 = new EnableHud(base.InstancedEvent, EnableHud.HudToggle.Enable);

            GameCore.Activities.Event.Components.AssignPowerupConfiguration item11 = new GameCore.Activities.Event.Components.AssignPowerupConfiguration(base.InstancedEvent);
            SetCameraBounds          item12   = new SetCameraBounds(base.InstancedEvent, true);
            Running <EntrantMeeting> activity = new Running <EntrantMeeting>(base.InstancedEvent, new string[]
            {
                "Entrants.Loading"
            });
            SetCameraBounds item13 = new SetCameraBounds(base.InstancedEvent, false);
            EnableHud       item14 = new EnableHud(base.InstancedEvent, EnableHud.HudToggle.Dispose);
            EventBarriers   item15 = new EventBarriers(base.InstancedEvent, false);
            RemoveAllOpponentsExceptLocalPlayer item16 = new RemoveAllOpponentsExceptLocalPlayer(base.InstancedEvent);
            CleanupEvent item17 = new CleanupEvent(base.InstancedEvent);
            CleanupGrid  item18 = new CleanupGrid(base.InstancedEvent);
            CheckOpponentDisconnected activity2 = new CheckOpponentDisconnected(base.InstancedEvent.Manager, false);
            CheckOpponentDisconnected activity3 = new CheckOpponentDisconnected(base.InstancedEvent.Manager, true);

            state2.EnterActivity.Activities.Add(item);
            state2.EnterActivity.Activities.Add(item3);
            state2.EnterActivity.Activities.Add(item4);
            state2.EnterActivity.Activities.Add(item2);
            state2.EnterActivity.Activities.Add(item5);
            state2.EnterActivity.Activities.Add(item6);
            state2.EnterActivity.Activities.Add(item7);
            state2.EnterActivity.Activities.Add(item8);
            state2.EnterActivity.Activities.Add(item9);
            state2.EnterActivity.Activities.Add(item12);
            state2.EnterActivity.Activities.Add(item10);
            state2.EnterActivity.Activities.Add(item11);
            state2.Transitions.Add(new Transition("disconnected", activity3));
            state2.Transitions.Add(new Transition("running", activity2));
            state.Transitions.Add(new Transition("done", activity));
            EnableLoadingScreen item19 = new EnableLoadingScreen(false);

            state3.EnterActivity.Activities.Add(item19);
            state3.Transitions.Add(new Transition("done"));
            state4.EnterActivity.Activities.Add(item14);
            state4.EnterActivity.Activities.Add(item18);
            state4.EnterActivity.Activities.Add(item15);
            state4.EnterActivity.Activities.Add(item16);
            state4.EnterActivity.Activities.Add(item13);
            state4.EnterActivity.Activities.Add(item17);
            state3.EnterActivity.Activities.Add(item19);
            state3.Transitions.Add(new Transition("done"));
            stateGraph.InitialState = "loading";
            stateGraph.DoneState    = "done";
            stateGraph.States.Add(state2);
            stateGraph.States.Add(state);
            stateGraph.States.Add(state3);
            stateGraph.States.Add(state4);
            return(stateGraph);
        }