This commit is contained in:
Cintique
2022-05-31 14:59:17 +10:00
parent fb6c335f0f
commit ebcbcae46d

View File

@@ -230,7 +230,7 @@ namespace Barotrauma
/// in the way by converting the List`1 to a MoonSharp.Interpreter.Table and breaking everything.
/// Wrapping the value in a userdata preserves the original type during conversions.
/// </summary>
/// <param name="scriptObject">Lua value to conert and wrap in a userdata.</param>
/// <param name="scriptObject">Lua value to convert and wrap in a userdata.</param>
/// <param name="desiredType">The CLR type of the object to convert the Lua value to. Uses MoonSharp ScriptToClr converters. Lua scripts can obtain Types from descriptors.</param>
/// <returns>A userdata that wraps the Lua value converted to an object of the desired type.</returns>
public static DynValue CreateUserDataOfType(DynValue scriptObject, Type desiredType)