mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-20 09:35:56 +02:00
More cleanup (moved groups to WorldMaster class) and fixed the project file.
This commit is contained in:
parent
2cc63960a7
commit
31446f37fa
10 changed files with 227 additions and 127 deletions
|
@ -9,14 +9,14 @@ namespace FFXIVClassic_World_Server
|
|||
{
|
||||
class RetainerGroupManager
|
||||
{
|
||||
private Server mServer;
|
||||
private WorldManager mWorldManager;
|
||||
private Object mGroupLockReference;
|
||||
private Dictionary<ulong, Group> mCurrentWorldGroupsReference;
|
||||
private Dictionary<uint, RetainerGroup> mRetainerGroupList = new Dictionary<uint, RetainerGroup>();
|
||||
|
||||
public RetainerGroupManager(Server server, Object groupLock, Dictionary<ulong, Group> worldGroupList)
|
||||
public RetainerGroupManager(WorldManager worldManager, Object groupLock, Dictionary<ulong, Group> worldGroupList)
|
||||
{
|
||||
mServer = server;
|
||||
mWorldManager = worldManager;
|
||||
mGroupLockReference = groupLock;
|
||||
mCurrentWorldGroupsReference = worldGroupList;
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ namespace FFXIVClassic_World_Server
|
|||
{
|
||||
lock(mGroupLockReference)
|
||||
{
|
||||
ulong groupId = mServer.GetGroupIndex();
|
||||
ulong groupId = mWorldManager.GetGroupIndex();
|
||||
RetainerGroup retainerGroup = new RetainerGroup(groupId, charaId);
|
||||
|
||||
Dictionary<uint, RetainerGroupMember> members = Database.GetRetainers(charaId);
|
||||
|
@ -44,7 +44,7 @@ namespace FFXIVClassic_World_Server
|
|||
mRetainerGroupList.Add(charaId, retainerGroup);
|
||||
mCurrentWorldGroupsReference.Add(groupId, retainerGroup);
|
||||
|
||||
mServer.IncrementGroupIndex();
|
||||
mWorldManager.IncrementGroupIndex();
|
||||
|
||||
return retainerGroup;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue