mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-17 02:20:05 +00:00
Remove Eggs::Eggs and rearrange Entity members a bit
This commit is contained in:
@@ -45,6 +45,9 @@ struct Mob : public CombatNPC {
|
||||
int offsetX = 0, offsetY = 0;
|
||||
int groupMember[4] = {};
|
||||
|
||||
// for optimizing away AI in empty chunks
|
||||
int playersInView = 0;
|
||||
|
||||
// temporary; until we're sure what's what
|
||||
nlohmann::json data = {};
|
||||
|
||||
@@ -86,6 +89,9 @@ struct Mob : public CombatNPC {
|
||||
auto operator[](std::string s) {
|
||||
return data[s];
|
||||
}
|
||||
|
||||
virtual void enterIntoViewOf(CNSocket *sock) override;
|
||||
virtual void disappearFromViewOf(CNSocket *sock) override;
|
||||
};
|
||||
|
||||
namespace MobAI {
|
||||
|
||||
Reference in New Issue
Block a user