private static void SetupCustomAI( TimeInfo timeInfo, RealTimeConfig config, GameConnections <Citizen> gameConnections, RealTimeEventManager eventManager) { var realTimeResidentAI = new RealTimeResidentAI <ResidentAI, Citizen>( config, gameConnections, ResidentAIHook.GetResidentAIConnection(), eventManager); ResidentAIHook.RealTimeAI = realTimeResidentAI; var realTimeTouristAI = new RealTimeTouristAI <TouristAI, Citizen>( config, gameConnections, TouristAIHook.GetTouristAIConnection(), eventManager); TouristAIHook.RealTimeAI = realTimeTouristAI; var realTimePrivateBuildingAI = new RealTimePrivateBuildingAI( config, timeInfo, new ToolManagerConnection()); PrivateBuildingAIHook.RealTimeAI = realTimePrivateBuildingAI; }
GameConnectionManager() { PassengerCarAIConnection = PassengerCarAIHook.GetConnection(); VehicleAIConnection = VehicleAIHook.GetConnection(); TrainAIConnection = TrainAIHook.GetConnection(); HumanAIConnection = HumanAIHook.GetConnection(); ResidentAIConnection = ResidentAIHook.GetConnection(); TouristAIConnection = TouristAIHook.GetConnection(); }