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

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

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