mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-24 05:37:46 +00:00
Added way to instantiate a GL Director. Aetheryte parent now does it.
This commit is contained in:
parent
8ccd3439c1
commit
25cd75d40c
2 changed files with 12 additions and 1 deletions
|
@ -501,6 +501,17 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Director CreateGuildleveDirector(string path, uint glid, params object[] args)
|
||||||
|
{
|
||||||
|
lock (directorLock)
|
||||||
|
{
|
||||||
|
GuildleveDirector director = new GuildleveDirector(directorIdCount, this, path, glid, args);
|
||||||
|
currentDirectors.Add(directorIdCount, director);
|
||||||
|
directorIdCount++;
|
||||||
|
return director;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void DeleteDirector(uint id)
|
public void DeleteDirector(uint id)
|
||||||
{
|
{
|
||||||
lock (directorLock)
|
lock (directorLock)
|
||||||
|
|
|
@ -120,7 +120,7 @@ function doLevequestInit(player, aetheryte)
|
||||||
if (difficulty == nil) then goto SELECT_DETAIL; end
|
if (difficulty == nil) then goto SELECT_DETAIL; end
|
||||||
confirmResult = callClientFunction(player, "eventGLStart", glId, difficulty, 1, guildleveData.favorCount, 20, 0, 0, 0, 0);
|
confirmResult = callClientFunction(player, "eventGLStart", glId, difficulty, 1, guildleveData.favorCount, 20, 0, 0, 0, 0);
|
||||||
if (confirmResult == nil) then goto SELECT_DIFFICULTY; else
|
if (confirmResult == nil) then goto SELECT_DIFFICULTY; else
|
||||||
director = player:GetZone():CreateDirector("Guildleve/PrivateGLBattleDetectNormal");
|
director = player:GetZone():CreateGuildleveDirector("Guildleve/PrivateGLBattleDetectNormal", glId);
|
||||||
player:AddDirector(director);
|
player:AddDirector(director);
|
||||||
director:StartDirector(true, glId)
|
director:StartDirector(true, glId)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue