Ejemplo n.º 1
0
        public override StateGraph CreateGraph()
        {
            StateGraph stateGraph = new StateGraph();
            LordToil_LoadAndEnterTransporters lordToil_LoadAndEnterTransporters = (LordToil_LoadAndEnterTransporters)(stateGraph.StartingToil = new LordToil_LoadAndEnterTransporters(transportersGroup));
            LordToil_End toil = new LordToil_End();

            stateGraph.AddToil(toil);
            return(stateGraph);
        }
Ejemplo n.º 2
0
        public override StateGraph CreateGraph()
        {
            StateGraph stateGraph = new StateGraph();
            LordToil_LoadAndEnterTransporters firstSource = (LordToil_LoadAndEnterTransporters)(stateGraph.StartingToil = new LordToil_LoadAndEnterTransporters(this.transportersGroup));
            LordToil_End lordToil_End = new LordToil_End();

            stateGraph.AddToil(lordToil_End);
            Transition transition = new Transition(firstSource, lordToil_End);

            transition.AddTrigger(new Trigger_PawnLost());
            transition.AddPreAction(new TransitionAction_Message("MessageFailedToLoadTransportersBecauseColonistLost".Translate(), MessageTypeDefOf.NegativeEvent));
            transition.AddPreAction(new TransitionAction_Custom(this.CancelLoadingProcess));
            stateGraph.AddTransition(transition);
            return(stateGraph);
        }