mirror of
https://github.com/Patoke/LCERenewed.git
synced 2026-11-02 22:00:17 +00:00
feat: init
This commit is contained in:
commit
25809b8455
18807 files changed
+3944357
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
class EntitySelector
|
||||
{
|
||||
public:
|
||||
static const EntitySelector *ENTITY_STILL_ALIVE;
|
||||
static const EntitySelector *CONTAINER_ENTITY_SELECTOR;
|
||||
|
||||
virtual bool matches(shared_ptr<Entity> entity) const = 0;
|
||||
};
|
||||
|
||||
class AliveEntitySelector : public EntitySelector
|
||||
{
|
||||
public:
|
||||
bool matches(shared_ptr<Entity> entity) const;
|
||||
};
|
||||
|
||||
class ContainerEntitySelector : public EntitySelector
|
||||
{
|
||||
public:
|
||||
bool matches(shared_ptr<Entity> entity) const;
|
||||
};
|
||||
|
||||
class MobCanWearArmourEntitySelector : public EntitySelector
|
||||
{
|
||||
private:
|
||||
shared_ptr<ItemInstance> item;
|
||||
|
||||
public:
|
||||
MobCanWearArmourEntitySelector(shared_ptr<ItemInstance> item);
|
||||
bool matches(shared_ptr<Entity> entity) const;
|
||||
};
|
||||
Reference in new issue
Block a user