public static bool Prefix(ref bool __result,
                                  ushort instanceID,
                                  ref CitizenInstance citizenData,
                                  Vector3 startPos,
                                  Vector3 endPos,
                                  VehicleInfo vehicleInfo,
                                  bool enableTransport,
                                  bool ignoreCost)
        {
            IExtCitizenInstanceManager extCitizenInstanceManager = Constants.ManagerFactory.ExtCitizenInstanceManager;
            IExtCitizenManager         extCitizenManager         = Constants.ManagerFactory.ExtCitizenManager;

            __result = extCitizenInstanceManager.StartPathFind(
                instanceID,
                ref citizenData,
                ref extCitizenInstanceManager.ExtInstances[instanceID],
                ref extCitizenManager.ExtCitizens[citizenData.m_citizen],
                startPos,
                endPos,
                vehicleInfo,
                enableTransport,
                ignoreCost);

            return(false);
        }
Пример #2
0
        public bool CustomStartPathFind(ushort instanceId,
                                        ref CitizenInstance citizenData,
                                        Vector3 startPos,
                                        Vector3 endPos,
                                        VehicleInfo vehicleInfo,
                                        bool enableTransport,
                                        bool ignoreCost)
        {
            IExtCitizenInstanceManager extCitizenInstanceManager = Constants.ManagerFactory.ExtCitizenInstanceManager;
            IExtCitizenManager         extCitizenManager         = Constants.ManagerFactory.ExtCitizenManager;

            return(extCitizenInstanceManager.StartPathFind(
                       instanceId,
                       ref citizenData,
                       ref extCitizenInstanceManager.ExtInstances[instanceId],
                       ref extCitizenManager.ExtCitizens[citizenData.m_citizen],
                       startPos,
                       endPos,
                       vehicleInfo,
                       enableTransport,
                       ignoreCost));
        }