docs update and entity.spawner
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user