docs update and entity.spawner

This commit is contained in:
Evil Factory
2021-10-03 12:13:45 -03:00
parent a5233b4686
commit 446686e18c
7 changed files with 303 additions and 12 deletions
@@ -64,14 +64,6 @@ namespace Barotrauma
}
}
public EntitySpawner Spawner
{
get
{
return Entity.Spawner;
}
}
public GameSession GameSession
{
get
@@ -48,6 +48,12 @@ namespace Barotrauma
return "table";
}
if (type.StartsWith("Action"))
return "function";
if (type.StartsWith("Func"))
return "function";
return type;
}
@@ -436,6 +436,7 @@ namespace Barotrauma
lua.Globals["RandSync"] = UserData.CreateStatic<Rand.RandSync>();
lua.Globals["SubmarineInfo"] = UserData.CreateStatic<SubmarineInfo>();
lua.Globals["Rectangle"] = UserData.CreateStatic<Rectangle>();
lua.Globals["Entity"] = UserData.CreateStatic<Entity>();
#if SERVER
@@ -462,7 +463,7 @@ namespace Barotrauma
lua.Globals["SERVER"] = isServer;
lua.Globals["CLIENT"] = !isServer;
LuaDocs.GenerateDocs(typeof(JobPrefab));
LuaDocs.GenerateDocs(typeof(EntitySpawner));
if (File.Exists("Lua/MoonsharpSetup.lua")) // try the default loader
DoFile("Lua/MoonsharpSetup.lua");