This commit is contained in:
Sardelka 2022-07-06 01:03:35 +08:00
commit 01b4753dc6

View File

@ -165,60 +165,60 @@ namespace RageCoop.Client.Scripting
{ {
case TypeCode.Boolean: case TypeCode.Boolean:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<bool>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<bool>(hash, arguments.ToArray()) });
break; break;
case TypeCode.Byte: case TypeCode.Byte:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<byte>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<byte>(hash, arguments.ToArray()) });
break; break;
case TypeCode.Char: case TypeCode.Char:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<char>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<char>(hash, arguments.ToArray()) });
break; break;
case TypeCode.Single: case TypeCode.Single:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<float>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<float>(hash, arguments.ToArray()) });
break; break;
case TypeCode.Double: case TypeCode.Double:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<double>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<double>(hash, arguments.ToArray()) });
break; break;
case TypeCode.Int16: case TypeCode.Int16:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<short>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<short>(hash, arguments.ToArray()) });
break; break;
case TypeCode.Int32: case TypeCode.Int32:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<int>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<int>(hash, arguments.ToArray()) });
break; break;
case TypeCode.Int64: case TypeCode.Int64:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<long>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<long>(hash, arguments.ToArray()) });
break; break;
case TypeCode.String: case TypeCode.String:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<string>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<string>(hash, arguments.ToArray()) });
break; break;
case TypeCode.UInt16: case TypeCode.UInt16:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<ushort>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<ushort>(hash, arguments.ToArray()) });
break; break;
case TypeCode.UInt32: case TypeCode.UInt32:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<uint>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<uint>(hash, arguments.ToArray()) });
break; break;
case TypeCode.UInt64: case TypeCode.UInt64:
API.SendCustomEvent(CustomEvents.NativeResponse, API.SendCustomEvent(CustomEvents.NativeResponse,
new List<object> { id, Function.Call<ulong>(hash, arguments.ToArray()) }); new object[] { id, Function.Call<ulong>(hash, arguments.ToArray()) });
break; break;
} }