-
Notifications
You must be signed in to change notification settings - Fork 67
/
Alt.MValue.cs
42 lines (35 loc) · 1.15 KB
/
Alt.MValue.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using AltV.Net.Elements.Args;
namespace AltV.Net.Client
{
public static partial class Alt
{
public static void RegisterMValueAdapter<T>(IMValueAdapter<T> adapter)
{
Core.RegisterMValueAdapter(adapter);
}
public static bool ToMValue(object obj, Type type, out MValueConst mValue)
{
return Core.ToMValue(obj, type, out mValue);
}
public static bool FromMValue(in MValueConst mValue, Type type, out object obj)
{
return Core.FromMValue(mValue, type, out obj);
}
public static bool MValueFromObject(object obj, Type type, out object result)
{
return Core.MValueFromObject(obj, type, out result);
}
public static bool IsMValueConvertible(Type type)
{
return Core.IsMValueConvertible(type);
}
public static MValueWriter2 CreateMValueWriter()
{
return new MValueWriter2(Core);
}
public static MValueBuffer2 CreateMValueBuffer(MValueConst[] values)
{
return new MValueBuffer2(Core, values);
}
}
}