From 1045a6fad249606f1369cd95360a3f1782b7c4f2 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Thu, 17 Nov 2016 17:04:21 +0200 Subject: [PATCH] Implement the FindTask method for entities. --- source/Entity/Blip.cpp | 1 + source/Entity/Checkpoint.cpp | 1 + source/Entity/Keybind.cpp | 1 + source/Entity/Object.cpp | 1 + source/Entity/Pickup.cpp | 1 + source/Entity/Player.cpp | 1 + source/Entity/Vehicle.cpp | 1 + 7 files changed, 7 insertions(+) diff --git a/source/Entity/Blip.cpp b/source/Entity/Blip.cpp index fab376f4..8dcb3e80 100644 --- a/source/Entity/Blip.cpp +++ b/source/Entity/Blip.cpp @@ -361,6 +361,7 @@ void Register_CBlip(HSQUIRRELVM vm) .SquirrelFunc(_SC("MakeTask"), &Tasks::MakeTask< CBlip, ENT_BLIP >) .SquirrelFunc(_SC("DropTask"), &Tasks::DropTask< CBlip, ENT_BLIP >) .SquirrelFunc(_SC("DoesTask"), &Tasks::DoesTask< CBlip, ENT_BLIP >) + .SquirrelFunc(_SC("FindTask"), &Tasks::FindTask< CBlip, ENT_BLIP >) ); } diff --git a/source/Entity/Checkpoint.cpp b/source/Entity/Checkpoint.cpp index 9b69c1d5..041358e9 100644 --- a/source/Entity/Checkpoint.cpp +++ b/source/Entity/Checkpoint.cpp @@ -582,6 +582,7 @@ void Register_CCheckpoint(HSQUIRRELVM vm) .SquirrelFunc(_SC("MakeTask"), &Tasks::MakeTask< CCheckpoint, ENT_CHECKPOINT >) .SquirrelFunc(_SC("DropTask"), &Tasks::DropTask< CCheckpoint, ENT_CHECKPOINT >) .SquirrelFunc(_SC("DoesTask"), &Tasks::DoesTask< CCheckpoint, ENT_CHECKPOINT >) + .SquirrelFunc(_SC("FindTask"), &Tasks::FindTask< CCheckpoint, ENT_CHECKPOINT >) ); } diff --git a/source/Entity/Keybind.cpp b/source/Entity/Keybind.cpp index 6133685b..d062cdb1 100644 --- a/source/Entity/Keybind.cpp +++ b/source/Entity/Keybind.cpp @@ -244,6 +244,7 @@ void Register_CKeybind(HSQUIRRELVM vm) .SquirrelFunc(_SC("MakeTask"), &Tasks::MakeTask< CKeybind, ENT_KEYBIND >) .SquirrelFunc(_SC("DropTask"), &Tasks::DropTask< CKeybind, ENT_KEYBIND >) .SquirrelFunc(_SC("DoesTask"), &Tasks::DoesTask< CKeybind, ENT_KEYBIND >) + .SquirrelFunc(_SC("FindTask"), &Tasks::FindTask< CKeybind, ENT_KEYBIND >) ); } diff --git a/source/Entity/Object.cpp b/source/Entity/Object.cpp index 94d2b0e5..40a5bb83 100644 --- a/source/Entity/Object.cpp +++ b/source/Entity/Object.cpp @@ -995,6 +995,7 @@ void Register_CObject(HSQUIRRELVM vm) .SquirrelFunc(_SC("MakeTask"), &Tasks::MakeTask< CObject, ENT_OBJECT >) .SquirrelFunc(_SC("DropTask"), &Tasks::DropTask< CObject, ENT_OBJECT >) .SquirrelFunc(_SC("DoesTask"), &Tasks::DoesTask< CObject, ENT_OBJECT >) + .SquirrelFunc(_SC("FindTask"), &Tasks::FindTask< CObject, ENT_OBJECT >) ); } diff --git a/source/Entity/Pickup.cpp b/source/Entity/Pickup.cpp index 75f15240..84b8dc83 100644 --- a/source/Entity/Pickup.cpp +++ b/source/Entity/Pickup.cpp @@ -498,6 +498,7 @@ void Register_CPickup(HSQUIRRELVM vm) .SquirrelFunc(_SC("MakeTask"), &Tasks::MakeTask< CPickup, ENT_PICKUP >) .SquirrelFunc(_SC("DropTask"), &Tasks::DropTask< CPickup, ENT_PICKUP >) .SquirrelFunc(_SC("DoesTask"), &Tasks::DoesTask< CPickup, ENT_PICKUP >) + .SquirrelFunc(_SC("FindTask"), &Tasks::FindTask< CPickup, ENT_PICKUP >) ); } diff --git a/source/Entity/Player.cpp b/source/Entity/Player.cpp index 882d330c..fde2a900 100644 --- a/source/Entity/Player.cpp +++ b/source/Entity/Player.cpp @@ -2533,6 +2533,7 @@ void Register_CPlayer(HSQUIRRELVM vm) .SquirrelFunc(_SC("MakeTask"), &Tasks::MakeTask< CPlayer, ENT_PLAYER >) .SquirrelFunc(_SC("DropTask"), &Tasks::DropTask< CPlayer, ENT_PLAYER >) .SquirrelFunc(_SC("DoesTask"), &Tasks::DoesTask< CPlayer, ENT_PLAYER >) + .SquirrelFunc(_SC("FindTask"), &Tasks::FindTask< CPlayer, ENT_PLAYER >) ); } diff --git a/source/Entity/Vehicle.cpp b/source/Entity/Vehicle.cpp index 4099482e..cc057c30 100644 --- a/source/Entity/Vehicle.cpp +++ b/source/Entity/Vehicle.cpp @@ -1931,6 +1931,7 @@ void Register_CVehicle(HSQUIRRELVM vm) .SquirrelFunc(_SC("MakeTask"), &Tasks::MakeTask< CVehicle, ENT_VEHICLE >) .SquirrelFunc(_SC("DropTask"), &Tasks::DropTask< CVehicle, ENT_VEHICLE >) .SquirrelFunc(_SC("DoesTask"), &Tasks::DoesTask< CVehicle, ENT_VEHICLE >) + .SquirrelFunc(_SC("FindTask"), &Tasks::FindTask< CVehicle, ENT_VEHICLE >) ); }