public MoveTowardsInterestDirectionStateManager( CoreInteractiveObject AssociatedInteractiveObject, TrackUnknownInterestDirectionSystem TrackUnknownInterestDirectionSystem, SoldierAIBehaviorDefinition SoldierAIBehaviorDefinition, ISetAIAgentDestinationActionCallback ISetAIAgentDestinationActionCallback, Action OnTrackUnknownStateManagerAskedToExit) { this.AssociatedInteractiveObject = AssociatedInteractiveObject; this.TrackUnknownInterestDirectionSystem = TrackUnknownInterestDirectionSystem; this.SoldierAIBehaviorDefinition = SoldierAIBehaviorDefinition; this.ISetAIAgentDestinationActionCallback = ISetAIAgentDestinationActionCallback; this.OnTrackUnknownStateManagerAskedToExit = OnTrackUnknownStateManagerAskedToExit; }
public void Init(CoreInteractiveObject associatedInteractiveObject, SoldierAIBehaviorDefinition SoldierAIBehaviorDefinition, SoldierAIBehaviorExternalCallbacksV2 SoldierAIBehaviorExternalCallbacksV2, Action AskTrackUnknownStateManagerToExitAction) { this.TrackUnknownInterestDirectionSystem = new TrackUnknownInterestDirectionSystem(associatedInteractiveObject); this.StateManagersLookup = new Dictionary <TrackUnknownStateEnum, SoldierStateManager>() { { TrackUnknownStateEnum.MOVE_TOWARDS_INTEREST_DIRECTION, new MoveTowardsInterestDirectionStateManager(associatedInteractiveObject, this.TrackUnknownInterestDirectionSystem, SoldierAIBehaviorDefinition, SoldierAIBehaviorExternalCallbacksV2, AskTrackUnknownStateManagerToExitAction) } }; base.Init(TrackUnknownStateEnum.MOVE_TOWARDS_INTEREST_DIRECTION); }