mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 10:26:37 +00:00
Split task classes into their own cpp/h files to speed up incremental compilation and make things easier to maintain
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#ifndef EQEMU_TASK_PROXIMITY_MANAGER_H
|
||||
#define EQEMU_TASK_PROXIMITY_MANAGER_H
|
||||
|
||||
struct TaskProximity {
|
||||
int explore_id;
|
||||
float min_x;
|
||||
float max_x;
|
||||
float min_y;
|
||||
float max_y;
|
||||
float min_z;
|
||||
float max_z;
|
||||
};
|
||||
|
||||
// This class is used for managing proximities so that Quest NPC proximities don't need to be used.
|
||||
class TaskProximityManager {
|
||||
|
||||
public:
|
||||
TaskProximityManager();
|
||||
~TaskProximityManager();
|
||||
bool LoadProximities(int zone_id);
|
||||
int CheckProximities(float x, float y, float z);
|
||||
|
||||
private:
|
||||
std::vector<TaskProximity> task_proximities;
|
||||
};
|
||||
|
||||
#endif //EQEMU_TASK_PROXIMITY_MANAGER_H
|
||||
Reference in New Issue
Block a user