Modified how directors work to allow for persistence. Implemented GuildleveDirector object and it's work values.

This commit is contained in:
Filip Maj
2017-06-24 15:31:42 -04:00
parent 2d7d10a417
commit eb17da1c89
7 changed files with 155 additions and 44 deletions

View File

@@ -1420,14 +1420,7 @@ namespace FFXIVClassic_Map_Server.Actors
if (!ownedDirectors.Contains(director))
{
ownedDirectors.Add(director);
director.AddChild(this);
if (spawnImmediatly)
{
director.GetSpawnPackets(actorId).DebugPrintPacket();
QueuePacket(director.GetSpawnPackets(actorId));
QueuePacket(director.GetInitPackets(actorId));
}
director.AddMember(this);
}
}
@@ -1443,7 +1436,7 @@ namespace FFXIVClassic_Map_Server.Actors
if (!ownedDirectors.Contains(director))
{
ownedDirectors.Remove(director);
director.RemoveChild(this);
director.RemoveMember(this);
}
}