1234567891011121314151617181920212223242526 |
- #pragma once
- #include "cWObject.h"
- #include "cThread.h"
- #include "cMessage.h"
- class cObjectDB : public cLockable {
- public:
- cObjectDB();
- ~cObjectDB();
- void UpdateObjects(float fTimeDiff);
- void AddObject(cWObject * NewObject);
- cWObject * FindObject(DWORD GUID);
- void DeleteObject(DWORD GUID);
- std::list<cWObject *> * GetObjectsWithin(cPoint3D Position, float fDistance);
- void ParsePackContents(cMessage *Msg);
- private:
- std::unordered_map<DWORD, cWObject *> ObjectList;
- std::unordered_map<DWORD, std::list<DWORD> *> m_mPackContents;
- };
|