diff options
| author | Léo Lam <leo@leolam.fr> | 2020-12-02 18:50:27 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2020-12-02 19:23:05 +0100 |
| commit | fc55c87f12f3c9c81974be3a2cdc460f3fe99fba (patch) | |
| tree | 587f4d994e82d956bce89e6ab71dbfe3c24cbb21 /src/KingSystem/ActorSystem/actActorUtil.h | |
| parent | 3559c31bc9ab193b7bc601d66762807c6ae460a3 (diff) | |
ksys/act: Implement ActorUtil "has tag" functions
Diffstat (limited to 'src/KingSystem/ActorSystem/actActorUtil.h')
| -rw-r--r-- | src/KingSystem/ActorSystem/actActorUtil.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/KingSystem/ActorSystem/actActorUtil.h b/src/KingSystem/ActorSystem/actActorUtil.h index 6a312e45..73f329d5 100644 --- a/src/KingSystem/ActorSystem/actActorUtil.h +++ b/src/KingSystem/ActorSystem/actActorUtil.h @@ -45,17 +45,20 @@ enum class ZukanType { }; bool hasTag(Actor* actor, const sead::SafeString& tag); +bool hasTag(BaseProcLink* link, const sead::SafeString& tag); +bool hasTag(const ActorConstDataAccess& accessor, const sead::SafeString& tag); bool hasTag(const sead::SafeString& actor, const sead::SafeString& tag); bool hasTag(Actor* actor, u32 tag); bool hasTag(BaseProcLink* link, u32 tag); +bool hasTag(const ActorConstDataAccess& accessor, u32 tag); bool hasTag(const sead::SafeString& actor, u32 tag); /// Checks whether the actor has at least one of the specified tags. /// @param tags A comma separated list of tags. bool hasOneTagAtLeast(Actor* actor, const sead::SafeString& tags); bool hasOneTagAtLeast(BaseProcLink* link, const sead::SafeString& tags); -bool hasOneTagAtLeast(ActorConstDataAccess* accessor, const sead::SafeString& tags); +bool hasOneTagAtLeast(const ActorConstDataAccess& accessor, const sead::SafeString& tags); bool shouldSkipSpawnForWeatherReasons(map::Object* obj); bool isAnimalMasterAppearance(map::Object* obj); |
