Add Discord RPC back with new features, add beta splitscreen support, PR's from MCLCE used in this https://github.com/MCLCE/MinecraftConsoles/pull/1044 https://github.com/MCLCE/MinecraftConsoles/pull/1136 https://github.com/MCLCE/MinecraftConsoles/pull/1245
15 lines
205 B
C++
15 lines
205 B
C++
#pragma once
|
|
|
|
class Sensing
|
|
{
|
|
private:
|
|
Mob *mob;
|
|
vector<weak_ptr<Entity> > seen;
|
|
vector<weak_ptr<Entity> > unseen;
|
|
|
|
public:
|
|
Sensing(Mob *mob);
|
|
|
|
void tick();
|
|
bool canSee(shared_ptr<Entity> target);
|
|
}; |