mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[8705] Move DynamicObject guid counting from global levle to map.
This is first step in guid counting for map local object types at map level. Map local countin let 1) have more wide guid space and then more seldom have problems with guid counter overflow 2) possible implement (later) restart map at guid overflow without server shutdown. 3) let use static guids (not for DynamicOPbject that not stored in DB anyway) in instances instead dynamic allocated.
This commit is contained in:
parent
ae9ae781fc
commit
d482193cea
6 changed files with 32 additions and 15 deletions
|
|
@ -444,6 +444,9 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj
|
|||
{
|
||||
i_objectsToClientUpdate.erase( obj );
|
||||
}
|
||||
|
||||
// DynObjects currently
|
||||
uint32 GenerateLocalLowGuid(HighGuid guidhigh);
|
||||
private:
|
||||
void LoadMapAndVMap(int gx, int gy);
|
||||
void LoadVMap(int gx, int gy);
|
||||
|
|
@ -526,6 +529,8 @@ class MANGOS_DLL_SPEC Map : public GridRefManager<NGridType>, public MaNGOS::Obj
|
|||
std::set<WorldObject *> i_objectsToRemove;
|
||||
std::multimap<time_t, ScriptAction> m_scriptSchedule;
|
||||
|
||||
uint32 m_hiDynObjectGuid; // Map local dynobject low guid counter
|
||||
|
||||
// Type specific code for add/remove to/from grid
|
||||
template<class T>
|
||||
void AddToGrid(T*, NGridType *, Cell const&);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue