Fixed work values not updating. GL UI now shows up though it isn't configured.

This commit is contained in:
Filip Maj 2017-06-24 16:58:02 -04:00
parent 186d5b5cc5
commit 8fb4910320
7 changed files with 33 additions and 15 deletions

View file

@ -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;
}
}
}
}