Improve Lua Networking

This commit is contained in:
Evil Factory
2022-03-03 19:34:52 -03:00
parent dd42269f31
commit a8fdc0f9c5
6 changed files with 104 additions and 38 deletions
@@ -65,11 +65,10 @@ namespace Barotrauma
return new Pair<JobPrefab, int>((JobPrefab)v.Table.Get(1).ToObject(), (int)v.Table.Get(2).CastToNumber());
});
Script.GlobalOptions.CustomConverters.SetClrToScriptCustomConversion<UInt64>(
(Script script, UInt64 v) =>
{
return DynValue.NewString(v.ToString());
});
Script.GlobalOptions.CustomConverters.SetClrToScriptCustomConversion<UInt64>((Script script, UInt64 v) =>
{
return DynValue.NewString(v.ToString());
});
}
public static void RegisterAction<T>()