@@ -28,43 +28,57 @@ public async Task SetEyeColorAsync(uint value)
28
28
{
29
29
CheckExistence ( ) ;
30
30
31
- await _plugin . Schedule ( ( ) => Rage . Player . Player_SetEyeColor ( NativePointer , value ) ) . ConfigureAwait ( false ) ;
31
+ await _plugin
32
+ . Schedule ( ( ) => Rage . Player . Player_SetEyeColor ( NativePointer , value ) )
33
+ . ConfigureAwait ( false ) ;
32
34
}
33
35
34
36
public async Task < uint > GetEyeColorAsync ( )
35
37
{
36
38
CheckExistence ( ) ;
37
39
38
- return await _plugin . Schedule ( ( ) => Rage . Player . Player_GetEyeColor ( NativePointer ) ) . ConfigureAwait ( false ) ;
40
+ return await _plugin
41
+ . Schedule ( ( ) => Rage . Player . Player_GetEyeColor ( NativePointer ) )
42
+ . ConfigureAwait ( false ) ;
39
43
}
40
44
41
45
public async Task < uint > GetHairColorAsync ( )
42
46
{
43
47
CheckExistence ( ) ;
44
48
45
- return await _plugin . Schedule ( ( ) => Rage . Player . Player_GetHairColor ( NativePointer ) ) . ConfigureAwait ( false ) ;
49
+ return await _plugin
50
+ . Schedule ( ( ) => Rage . Player . Player_GetHairColor ( NativePointer ) )
51
+ . ConfigureAwait ( false ) ;
46
52
}
47
53
48
54
public async Task < uint > GetHairHighlightColorAsync ( )
49
55
{
50
56
CheckExistence ( ) ;
51
57
52
- return await _plugin . Schedule ( ( ) => Rage . Player . Player_GetHairHighlightColor ( NativePointer ) ) . ConfigureAwait ( false ) ;
58
+ return await _plugin
59
+ . Schedule ( ( ) => Rage . Player . Player_GetHairHighlightColor ( NativePointer ) )
60
+ . ConfigureAwait ( false ) ;
53
61
}
54
62
55
63
public async Task SetHeadBlendAsync ( HeadBlendData value )
56
64
{
57
65
CheckExistence ( ) ;
58
66
59
- await _plugin . Schedule ( ( ) => Rage . Player . Player_SetHeadBlend ( NativePointer , value . Shape [ 0 ] , value . Shape [ 1 ] , value . Shape [ 2 ] ,
60
- value . Skin [ 0 ] , value . Skin [ 1 ] , value . Skin [ 2 ] , value . ShapeMix , value . SkinMix , value . ThirdMix ) ) . ConfigureAwait ( false ) ;
67
+ await _plugin
68
+ . Schedule ( ( ) => Rage . Player . Player_SetHeadBlend ( NativePointer , value . Shape [ 0 ] , value . Shape [ 1 ] , value . Shape [ 2 ] ,
69
+ value . Skin [ 0 ] , value . Skin [ 1 ] , value . Skin [ 2 ] , value . ShapeMix , value . SkinMix , value . ThirdMix ) )
70
+ . ConfigureAwait ( false ) ;
61
71
}
62
72
63
73
public async Task < HeadBlendData > GetHeadBlendAsync ( )
64
74
{
65
75
CheckExistence ( ) ;
66
76
67
- return await _plugin . Schedule ( ( ) => StructConverter . PointerToStruct < HeadBlendData > ( Rage . Player . Player_GetHeadBlend ( NativePointer ) ) ) . ConfigureAwait ( false ) ;
77
+ var headBlendPointer = await _plugin
78
+ . Schedule ( ( ) => Rage . Player . Player_GetHeadBlend ( NativePointer ) )
79
+ . ConfigureAwait ( false ) ;
80
+
81
+ return StructConverter . PointerToStruct < HeadBlendData > ( headBlendPointer ) ;
68
82
}
69
83
70
84
public async Task < ClothData > GetClothAsync ( ClothSlot slot )
0 commit comments