mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Fixed work values not updating. GL UI now shows up though it isn't configured.
This commit is contained in:
@@ -110,6 +110,9 @@ namespace FFXIVClassic_Map_Server.actors.director
|
||||
p.QueuePacket(GetInitPackets(p.actorId));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
StartCoroutine("mainLoop", this);
|
||||
}
|
||||
|
||||
public void AddMember(Actor actor)
|
||||
@@ -223,5 +226,21 @@ namespace FFXIVClassic_Map_Server.actors.director
|
||||
return null;
|
||||
}
|
||||
|
||||
private List<LuaParam> StartCoroutine(string funcName, params object[] args)
|
||||
{
|
||||
if (directorScript != null)
|
||||
{
|
||||
if (!directorScript.Globals.Get(funcName).IsNil())
|
||||
{
|
||||
currentCoroutine = directorScript.CreateCoroutine(directorScript.Globals[funcName]).Coroutine;
|
||||
DynValue value = currentCoroutine.Resume(args);
|
||||
LuaEngine.GetInstance().ResolveResume(null, currentCoroutine, value);
|
||||
}
|
||||
else
|
||||
Program.Log.Error("Could not find script for director {0}.", GetName());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@@ -36,7 +36,7 @@ namespace FFXIVClassic_Map_Server.actors.director
|
||||
guildleveWork.startTime = Utils.UnixTimeStampUTC();
|
||||
ActorPropertyPacketUtil propertyBuilder = new ActorPropertyPacketUtil("guildleveWork/start", this, actorId);
|
||||
propertyBuilder.AddProperty("guildleveWork.startTime");
|
||||
SendPacketsToPlayers(propertyBuilder.Done());
|
||||
SendPacketsToPlayers(propertyBuilder.Done());
|
||||
}
|
||||
|
||||
public void EndGuildleve()
|
||||
|
Reference in New Issue
Block a user