convert UInt64 type to string, to avoid loosing precision with SteamIDs

This commit is contained in:
Evil Factory
2021-12-28 15:16:43 -03:00
parent 89cb0389d1
commit 370ee8f1b3

View File

@@ -51,6 +51,12 @@ 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());
});
}
public static void RegisterAction<T>()