// Token: 0x060014C0 RID: 5312 RVA: 0x000240C8 File Offset: 0x000230C8
        protected override WorkflowElement CreateBody()
        {
            StateGraph                    stateGraph = new StateGraph("TreasureHuntFlow");
            State                         state      = new State("initial");
            State                         state2     = new State("boot");
            State                         state3     = new State("running");
            State                         item       = new State("empty");
            State                         item2      = new State("done");
            BeginEventSecurity            item3      = new BeginEventSecurity();
            RefreshCoins                  item4      = new RefreshCoins(base.Event);
            CoinsRefreshed                activity   = new CoinsRefreshed(base.Event, Ports.Gameplay);
            NoCoinsRefreshed              activity2  = new NoCoinsRefreshed(base.Event, Ports.Gameplay);
            ActivateReferencedTriggers    item5      = new ActivateReferencedTriggers(base.Event);
            CommitAllAssets               item6      = new CommitAllAssets();
            AddLocalOpponent              item7      = new AddLocalOpponent(base.Event);
            Running <EntrantTreasureHunt> activity3  = new Running <EntrantTreasureHunt>(base.Event, new string[]
            {
                "Entrants.Loading"
            });
            DeactivateReferencedTriggers item8     = new DeactivateReferencedTriggers(base.Event);
            CheckPersonaLevel            activity4 = new CheckPersonaLevel(1u, 1u);
            CheckPersonaLevel            activity5 = new CheckPersonaLevel(2u, 100u);

            state.EnterActivity.Activities.Add(item3);
            state.Transitions.Add(new Transition("empty", activity4));
            state.Transitions.Add(new Transition("boot", activity5));
            state2.EnterActivity.Activities.Add(item4);
            state2.Transitions.Add(new Transition("empty", activity2));
            state2.Transitions.Add(new Transition("running", activity));
            state3.EnterActivity.Activities.Add(item5);
            state3.EnterActivity.Activities.Add(item6);
            state3.EnterActivity.Activities.Add(item7);
            state3.Transitions.Add(new Transition("done", activity3));
            state3.ExitActivity.Activities.Add(item8);
            stateGraph.InitialState = "initial";
            stateGraph.DoneState    = "done";
            stateGraph.States.Add(state);
            stateGraph.States.Add(state2);
            stateGraph.States.Add(state3);
            stateGraph.States.Add(item);
            stateGraph.States.Add(item2);
            return(stateGraph);
        }
Exemple #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);
        }