mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Added a thread and update() calls for gamestate changing.
This commit is contained in:
parent
6a6ee67ae2
commit
9372b4bc32
7 changed files with 78 additions and 0 deletions
|
@ -203,6 +203,21 @@ namespace FFXIVClassic_Map_Server.lua
|
|||
}
|
||||
}
|
||||
|
||||
public static void OnPlayerUpdate(Player player, double delta)
|
||||
{
|
||||
if (File.Exists(FILEPATH_PLAYER))
|
||||
{
|
||||
LuaScript script = LoadScript(FILEPATH_PLAYER);
|
||||
|
||||
if (script == null)
|
||||
return;
|
||||
|
||||
//Run Script
|
||||
if (!script.Globals.Get("onUpdate").IsNil())
|
||||
script.Call(script.Globals["onUpdate"], player);
|
||||
}
|
||||
}
|
||||
|
||||
#region RunGMCommand
|
||||
public static void RunGMCommand(Player player, String cmd, string[] param, bool help = false)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue