Example #1
0
        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;
        }
Example #2
0
 GameConnectionManager()
 {
     PassengerCarAIConnection = PassengerCarAIHook.GetConnection();
     VehicleAIConnection      = VehicleAIHook.GetConnection();
     TrainAIConnection        = TrainAIHook.GetConnection();
     HumanAIConnection        = HumanAIHook.GetConnection();
     ResidentAIConnection     = ResidentAIHook.GetConnection();
     TouristAIConnection      = TouristAIHook.GetConnection();
 }