diff --git a/Source/Engine/Level/Actor.h b/Source/Engine/Level/Actor.h index 85dccfe13..ef4e0fc36 100644 --- a/Source/Engine/Level/Actor.h +++ b/Source/Engine/Level/Actor.h @@ -208,7 +208,7 @@ public: /// /// Type of the actor to search for. Includes any actors derived from the type. /// The child actor or null. - API_FUNCTION() Actor* GetChild(const MClass* type) const; + API_FUNCTION() Actor* GetChild(API_PARAM(Attributes="TypeReference(typeof(Actor))") const MClass* type) const; /// /// Gets the child actor of the given type. @@ -225,7 +225,7 @@ public: /// /// Type of the actor to search for. Includes any actors derived from the type. /// The child actors. - API_FUNCTION() Array GetChildren(const MClass* type) const; + API_FUNCTION() Array GetChildren(API_PARAM(Attributes="TypeReference(typeof(Actor))") const MClass* type) const; /// /// Gets the child actors of the given type. @@ -271,7 +271,7 @@ public: /// /// Type of the script to search for. Includes any scripts derived from the type. /// The script or null. - API_FUNCTION() Script* GetScript(const MClass* type) const; + API_FUNCTION() Script* GetScript(API_PARAM(Attributes="TypeReference(typeof(Script))") const MClass* type) const; /// /// Gets the script of the given type from this actor. @@ -288,7 +288,7 @@ public: /// /// Type of the script to search for. Includes any scripts derived from the type. /// The scripts. - API_FUNCTION() Array GetScripts(const MClass* type) const; + API_FUNCTION() Array GetScripts(API_PARAM(Attributes="TypeReference(typeof(Script))") const MClass* type) const; /// /// Gets the scripts of the given type from this actor. @@ -712,7 +712,7 @@ public: /// /// Type of the actor to search for. Includes any actors derived from the type. /// Actor instance if found, null otherwise. - API_FUNCTION() Actor* FindActor(const MClass* type) const; + API_FUNCTION() Actor* FindActor(API_PARAM(Attributes="TypeReference(typeof(Actor))") const MClass* type) const; /// /// Tries to find the actor of the given type in this actor hierarchy (checks this actor and all children hierarchy). @@ -729,7 +729,7 @@ public: /// /// Type of the actor to search for. Includes any actors derived from the type. /// Script instance if found, null otherwise. - API_FUNCTION() Script* FindScript(const MClass* type) const; + API_FUNCTION() Script* FindScript(API_PARAM(Attributes="TypeReference(typeof(Script))") const MClass* type) const; /// /// Tries to find the script of the given type in this actor hierarchy (checks this actor and all children hierarchy). diff --git a/Source/Engine/Level/Level.h b/Source/Engine/Level/Level.h index 34691c474..8a6e53aae 100644 --- a/Source/Engine/Level/Level.h +++ b/Source/Engine/Level/Level.h @@ -362,7 +362,7 @@ public: /// /// Type of the actor to search for. Includes any actors derived from the type. /// Found actor or null. - API_FUNCTION() static Actor* FindActor(const MClass* type); + API_FUNCTION() static Actor* FindActor(API_PARAM(Attributes="TypeReference(typeof(Actor))") const MClass* type); /// /// Tries to find the actor of the given type in all the loaded scenes. @@ -379,7 +379,7 @@ public: /// /// Type of the script to search for. Includes any scripts derived from the type. /// Found script or null. - API_FUNCTION() static Script* FindScript(const MClass* type); + API_FUNCTION() static Script* FindScript(API_PARAM(Attributes="TypeReference(typeof(Script))") const MClass* type); /// /// Tries to find the script of the given type in all the loaded scenes. @@ -396,14 +396,14 @@ public: /// /// Type of the actor to search for. Includes any actors derived from the type. /// Found actors list. - API_FUNCTION() static Array GetActors(const MClass* type); + API_FUNCTION() static Array GetActors(API_PARAM(Attributes="TypeReference(typeof(Actor))") const MClass* type); /// /// Finds all the scripts of the given type in all the loaded scenes. /// /// Type of the script to search for. Includes any scripts derived from the type. /// Found scripts list. - API_FUNCTION() static Array GetScripts(const MClass* type); + API_FUNCTION() static Array GetScripts(API_PARAM(Attributes="TypeReference(typeof(Script))") const MClass* type); /// /// Tries to find scene with given ID.