class
PoliceAgentRegistry
- 4 properties
- 37 functions
Extends IScriptable ISerializable
Properties
| Property | Type | Offset | |
|---|---|---|---|
game | ScriptGameInstance | 0x0 | scripted |
vehicleAgents | VehicleAgent?[] | 0x18 | scripted |
npcAgents | NPCAgent?[] | 0x28 | scripted |
requestTickets | TicketData[] | 0x38 | scripted |
Functions
NPCAgent?[] GetNPCList()RTTIVehicleAgent?[] GetVehicleList()RTTIint GetTotalVehicleCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetTotalVehicleCount;", (PoliceAgentRegistry_GetTotalVehicleCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetTotalVehicleCount( PoliceAgentRegistry self );int GetTotalPendingTicketsCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetTotalPendingTicketsCount;", (PoliceAgentRegistry_GetTotalPendingTicketsCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetTotalPendingTicketsCount( PoliceAgentRegistry self );int GetTotalNPCCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetTotalNPCCount;", (PoliceAgentRegistry_GetTotalNPCCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetTotalNPCCount( PoliceAgentRegistry self );int GetFallbackNPCCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetFallbackNPCCount;", (PoliceAgentRegistry_GetFallbackNPCCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetFallbackNPCCount( PoliceAgentRegistry self );int GetPendingFallbackOnFootTicketCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetPendingFallbackOnFootTicketCount;", (PoliceAgentRegistry_GetPendingFallbackOnFootTicketCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetPendingFallbackOnFootTicketCount( PoliceAgentRegistry self );int GetPendingVehicleTicketsCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetPendingVehicleTicketsCount;", (PoliceAgentRegistry_GetPendingVehicleTicketsCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetPendingVehicleTicketsCount( PoliceAgentRegistry self );int GetExternalNPCCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetExternalNPCCount;", (PoliceAgentRegistry_GetExternalNPCCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetExternalNPCCount( PoliceAgentRegistry self );int GetMaxTacNPCCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetMaxTacNPCCount;", (PoliceAgentRegistry_GetMaxTacNPCCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetMaxTacNPCCount( PoliceAgentRegistry self );NPCAgent?[] GetMaxTacNPCList()RTTIbool IsPreventionMaxTac(game.Puppet puppet)RTTIre.Hooks.Place( "PoliceAgentRegistry", "IsPreventionMaxTac;gamePuppet", (PoliceAgentRegistry_IsPreventionMaxTac x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_IsPreventionMaxTac( PoliceAgentRegistry self, game.Puppet? puppet );float DistanceSquaredToTClosestMaxTacAgent(Vector4 positionToCheck)RTTIre.Hooks.Place( "PoliceAgentRegistry", "DistanceSquaredToTClosestMaxTacAgent;Vector4", (PoliceAgentRegistry_DistanceSquaredToTClosestMaxTacAgent x) => { return re.Hooks.CallOriginal<re.msgpack.Float>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_DistanceSquaredToTClosestMaxTacAgent( PoliceAgentRegistry self, Vector4 positionToCheck );VehicleAgent?[] GetEngagedVehicleList()RTTIbool GetEngagedNotDisengagingVehicleList(out VehicleAgent[] vehicleArray)RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetEngagedNotDisengagingVehicleList;array<VehicleAgent>", (PoliceAgentRegistry_GetEngagedNotDisengagingVehicleList x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetEngagedNotDisengagingVehicleList( PoliceAgentRegistry self, VehicleAgent[] vehicleArray );VehicleAgent?[] GetSupportVehicleList()RTTIint GetAvCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetAvCount;", (PoliceAgentRegistry_GetAvCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetAvCount( PoliceAgentRegistry self );int GetRoadblockCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetRoadblockCount;", (PoliceAgentRegistry_GetRoadblockCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetRoadblockCount( PoliceAgentRegistry self );NPCAgent?[] GetRoadblockNPCList()RTTIVehicleAgent?[] GetRoadblockVehicleList()RTTIint GetSupportVehiclesWithStrategyCount(vehicle.PoliceStrategy strategy)RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetSupportVehiclesWithStrategyCount;vehiclePoliceStrategy", (PoliceAgentRegistry_GetSupportVehiclesWithStrategyCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetSupportVehiclesWithStrategyCount( PoliceAgentRegistry self, vehicle.PoliceStrategy strategy );int GetEngagedVehicleCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetEngagedVehicleCount;", (PoliceAgentRegistry_GetEngagedVehicleCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetEngagedVehicleCount( PoliceAgentRegistry self );int GetSupportVehicleCount()RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetSupportVehicleCount;", (PoliceAgentRegistry_GetSupportVehicleCount x) => { return re.Hooks.CallOriginal<re.msgpack.Int>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetSupportVehicleCount( PoliceAgentRegistry self );void GetNPCsAssignedToVehicle(ent.EntityID vehicleEntityId, NPCAgent[] toFill)RTTIre.Hooks.PlaceVoid( "PoliceAgentRegistry", "GetNPCsAssignedToVehicle;EntityIDscript_ref<array<NPCAgent>>", (PoliceAgentRegistry_GetNPCsAssignedToVehicle x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetNPCsAssignedToVehicle( PoliceAgentRegistry self, ent.EntityID vehicleEntityId, NPCAgent[] toFill );void GetVehiclesWithoutRegisteredPassengers(VehicleAgent[] toFill)RTTIre.Hooks.PlaceVoid( "PoliceAgentRegistry", "GetVehiclesWithoutRegisteredPassengers;script_ref<array<VehicleAgent>>", (PoliceAgentRegistry_GetVehiclesWithoutRegisteredPassengers x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetVehiclesWithoutRegisteredPassengers( PoliceAgentRegistry self, VehicleAgent[] toFill );bool IsPoliceInCombatWithPalyer()RTTIre.Hooks.Place( "PoliceAgentRegistry", "IsPoliceInCombatWithPalyer;", (PoliceAgentRegistry_IsPoliceInCombatWithPalyer x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_IsPoliceInCombatWithPalyer( PoliceAgentRegistry self );bool HasPoliceRecentlyDeescalated()RTTIre.Hooks.Place( "PoliceAgentRegistry", "HasPoliceRecentlyDeescalated;", (PoliceAgentRegistry_HasPoliceRecentlyDeescalated x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_HasPoliceRecentlyDeescalated( PoliceAgentRegistry self );bool HasNPCBeenAttackedByPlayer(ent.EntityID id)RTTIre.Hooks.Place( "PoliceAgentRegistry", "HasNPCBeenAttackedByPlayer;EntityID", (PoliceAgentRegistry_HasNPCBeenAttackedByPlayer x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_HasNPCBeenAttackedByPlayer( PoliceAgentRegistry self, ent.EntityID id );bool Contains(ent.EntityID id)RTTIre.Hooks.Place( "PoliceAgentRegistry", "Contains;EntityID", (PoliceAgentRegistry_Contains x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_Contains( PoliceAgentRegistry self, ent.EntityID id );game.DynamicVehicleType GetNPCSpawnedType(ent.EntityID id)RTTIre.Hooks.Place( "PoliceAgentRegistry", "GetNPCSpawnedType;EntityID", (PoliceAgentRegistry_GetNPCSpawnedType x) => { return re.Hooks.CallOriginal<re.msgpack.game.DynamicVehicleType>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_GetNPCSpawnedType( PoliceAgentRegistry self, ent.EntityID id );bool RegisterAgent(game.Object unit, game.DynamicVehicleType type, vehicle.PoliceStrategy? strategy, bool? isFallback, bool overrideExisting)RTTIre.Hooks.Place( "PoliceAgentRegistry", "RegisterAgent;GameObjectDynamicVehicleTypevehiclePoliceStrategyBoolBool", (PoliceAgentRegistry_RegisterAgent x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_RegisterAgent( PoliceAgentRegistry self, game.Object? unit, game.DynamicVehicleType type, vehicle.PoliceStrategy? strategy, bool? isFallback, bool overrideExisting );UnregisterResult UnregisterAgent(ent.EntityID id)RTTIre.Hooks.Place( "PoliceAgentRegistry", "UnregisterAgent;EntityID", (PoliceAgentRegistry_UnregisterAgent x) => { return re.Hooks.CallOriginal<re.msgpack.UnregisterResult>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_UnregisterAgent( PoliceAgentRegistry self, ent.EntityID id );void UnregisterAll()RTTIre.Hooks.PlaceVoid( "PoliceAgentRegistry", "UnregisterAll;", (PoliceAgentRegistry_UnregisterAll x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_UnregisterAll( PoliceAgentRegistry self );void UpdateVehiclePassengerCount(ent.EntityID vehicleID, int passengers)RTTIre.Hooks.PlaceVoid( "PoliceAgentRegistry", "UpdateVehiclePassengerCount;EntityIDInt32", (PoliceAgentRegistry_UpdateVehiclePassengerCount x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_UpdateVehiclePassengerCount( PoliceAgentRegistry self, ent.EntityID vehicleID, int passengers );void CreateTicket(uint request, vehicle.PoliceStrategy strategy, bool? isFallback)RTTIre.Hooks.PlaceVoid( "PoliceAgentRegistry", "CreateTicket;Uint32vehiclePoliceStrategyBool", (PoliceAgentRegistry_CreateTicket x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_CreateTicket( PoliceAgentRegistry self, uint request, vehicle.PoliceStrategy strategy, bool? isFallback );bool PopRequestTicket(uint request, TicketData? ticketData)RTTIre.Hooks.Place( "PoliceAgentRegistry", "PopRequestTicket;Uint32script_ref<TicketData>", (PoliceAgentRegistry_PopRequestTicket x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_PopRequestTicket( PoliceAgentRegistry self, uint request, TicketData? ticketData );static PoliceAgentRegistry? Construct(ScriptGameInstance game)staticRTTI globalre.Hooks.Place( "PoliceAgentRegistry", "PoliceAgentRegistry::Construct;GameInstance", (PoliceAgentRegistry_Construct x) => { return re.Hooks.CallOriginal<re.msgpack.PoliceAgentRegistry>(); } ); [Msgpack.Gen] public readonly partial record struct PoliceAgentRegistry_Construct( ScriptGameInstance game );