Beispiel #1
0
        public void SetHeadBlend(HeadBlendData value)
        {
            CheckExistence();

            Rage.Player.Player_SetHeadBlend(NativePointer, value.Shape[0], value.Shape[1], value.Shape[2],
                                            value.Skin[0], value.Skin[1], value.Skin[2], value.ShapeMix, value.SkinMix, value.ThirdMix);
        }
Beispiel #2
0
        public void SetCustomization(bool isMale, HeadBlendData headBlend, uint eyeColor, uint hairColor, uint highlightColor, float[] faceFeatures,
                                     IDictionary <int, HeadOverlayData> headOverlays, IDictionary <uint, uint> decorations)
        {
            Contract.NotNull(headOverlays, nameof(headOverlays));
            Contract.NotNull(decorations, nameof(decorations));
            CheckExistence();

            var headOverlayKeys   = headOverlays.Keys.ToArray();
            var headOverlayValues = headOverlays.Values.ToArray();

            var decorationKeys   = decorations.Keys.ToArray();
            var decorationValues = decorations.Values.ToArray();

            Rage.Player.Player_SetCustomization(NativePointer, isMale, headBlend, eyeColor, hairColor, highlightColor, faceFeatures, (ulong)faceFeatures.Length, headOverlayKeys,
                                                headOverlayValues, (ulong)headOverlayKeys.Length, decorationKeys, decorationValues, (ulong)decorationKeys.Length);
        }
Beispiel #3
0
 internal static extern void Player_SetCustomization(IntPtr player, bool gender, HeadBlendData headBlend, uint eyeColor, uint hairColor, uint highlightColor,
                                                     float[] faceFeatures, ulong faceFeatureCount, int[] headOverlayKeys, HeadOverlayData[] headOverlayValues, ulong headOverlayCount, uint[] decorationKeys,
                                                     uint[] decorationValues, ulong decorationCount);
Beispiel #4
0
 public void SetCustomization(bool isMale, HeadBlendData headBlend, int eyeColor, int hairColor, int highlightColor, float[] faceFeatures,
                              IDictionary <int, HeadOverlayData> headOverlays, IDictionary <int, int> decorations)
 {
     SetCustomization(isMale, headBlend, (uint)eyeColor, (uint)hairColor, (uint)highlightColor, faceFeatures, headOverlays,
                      decorations.ToDictionary(x => (uint)x.Key, x => (uint)x.Value));
 }
Beispiel #5
0
 public Task SetHeadBlendAsync(HeadBlendData value)
 {
     return(_plugin.Schedule(() => SetHeadBlend(value)));
 }
Beispiel #6
0
 public Task SetCustomizationAsync(bool isMale, HeadBlendData headBlend, uint eyeColor, uint hairColor, uint highlightColor, float[] faceFeatures,
                                   IDictionary <int, HeadOverlayData> headOverlays, IDictionary <uint, uint> decorations)
 {
     return(_plugin.Schedule(() =>
                             SetCustomization(isMale, headBlend, eyeColor, hairColor, highlightColor, faceFeatures, headOverlays, decorations)));
 }