Clone of Akilla's ac2d @ https://github.com/deregtd/AC2D

cObjectDB.h 550B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "cWObject.h"
  3. #include "cThread.h"
  4. #include "cMessage.h"
  5. class cObjectDB : public cLockable {
  6. public:
  7. cObjectDB();
  8. ~cObjectDB();
  9. void UpdateObjects(float fTimeDiff);
  10. void AddObject(cWObject * NewObject);
  11. cWObject * FindObject(DWORD GUID);
  12. void DeleteObject(DWORD GUID);
  13. std::list<cWObject *> * GetObjectsWithin(cPoint3D Position, float fDistance);
  14. void ParsePackContents(cMessage *Msg);
  15. private:
  16. std::unordered_map<DWORD, cWObject *> ObjectList;
  17. std::unordered_map<DWORD, std::list<DWORD> *> m_mPackContents;
  18. };