Ejemplo n.º 1
0
 public void SetCloth(ClothSlot slot, byte drawable, byte texture, byte palette)
 {
     SetCloth(slot, new ClothData(drawable, texture, palette));
 }
Ejemplo n.º 2
0
        public void SetCloth(ClothSlot slot, ClothData data)
        {
            CheckExistence();

            Rage.Player.Player_SetCloth(NativePointer, (uint)slot, data);
        }
Ejemplo n.º 3
0
        public ClothData GetCloth(ClothSlot slot)
        {
            CheckExistence();

            return(StructConverter.PointerToStruct <ClothData>(Rage.Player.Player_GetClothes(NativePointer, (uint)slot)));
        }
Ejemplo n.º 4
0
 public Task SetClothAsync(ClothSlot slot, byte drawable, byte texture, byte palette)
 {
     return(SetClothAsync(slot, new ClothData(drawable, texture, palette)));
 }
Ejemplo n.º 5
0
 public Task SetClothAsync(ClothSlot slot, ClothData data)
 {
     return(_plugin.Schedule(() => SetCloth(slot, data)));
 }
Ejemplo n.º 6
0
 public Task <ClothData> GetClothAsync(ClothSlot slot)
 {
     return(_plugin.Schedule(() => GetCloth(slot)));
 }