refactor: no more dynvalues or userdatas
This commit is contained in:
@@ -8,6 +8,7 @@ using Microsoft.Xna.Framework;
|
||||
using System.Threading.Tasks;
|
||||
using Barotrauma.Items.Components;
|
||||
using System.Diagnostics;
|
||||
using NLua;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
@@ -56,19 +57,6 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void RunFunction(DynValue func)
|
||||
{
|
||||
try
|
||||
{
|
||||
lua.Call(func);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
HandleLuaException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public DynValue DoFile(string file)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user