mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-21 10:05:56 +02:00
Fixed work values not updating. GL UI now shows up though it isn't configured.
This commit is contained in:
parent
186d5b5cc5
commit
8fb4910320
7 changed files with 33 additions and 15 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue