Exemplo n.º 1
0
 public static Task <byte> GetPrimaryColorAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.PrimaryColor);
Exemplo n.º 2
0
 public static Task SetWheelHasTireAsync(this IVehicle vehicle, byte wheelId, bool state) =>
 AltVAsync.Schedule(() => vehicle.SetWheelHasTire(wheelId, state));
Exemplo n.º 3
0
 public static Task <Position> GetVelocityAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.Velocity);
Exemplo n.º 4
0
 public static Task <float> GetWheelHealthAsync(this IVehicle vehicle, byte wheelId) =>
 AltVAsync.Schedule(() => vehicle.GetWheelHealth(wheelId));
Exemplo n.º 5
0
 public static Task RepairAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(vehicle.Repair);
Exemplo n.º 6
0
 public static Task AttachToEntityAsync(this IVehicle vehicle, IEntity entity, short otherBone, short ownBone,
                                        Position position, Rotation rotation, bool collision, bool noFixedRotation) =>
 AltVAsync.Schedule(() =>
                    vehicle.AttachToEntity(entity, otherBone, ownBone, position, rotation, collision, noFixedRotation));
Exemplo n.º 7
0
 public static Task <bool> DoesWheelHasTireAsync(this IVehicle vehicle, byte wheelId) =>
 AltVAsync.Schedule(() => vehicle.DoesWheelHasTire(wheelId));
Exemplo n.º 8
0
 public static Task SetManualEngineControlAsync(this IVehicle vehicle, bool state) =>
 AltVAsync.Schedule(() => vehicle.ManualEngineControl = state);
Exemplo n.º 9
0
 public static Task <string> GetScriptDataAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.ScriptData);
Exemplo n.º 10
0
 public static Task SetRadioStationAsync(this IVehicle vehicle, uint radioStation) =>
 AltVAsync.Schedule(() => vehicle.RadioStation = radioStation);
Exemplo n.º 11
0
 public static Task <bool> GetManualEngineControlAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.ManualEngineControl);
Exemplo n.º 12
0
 public static Task <uint> GetRadioStationAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.RadioStation);
Exemplo n.º 13
0
 public static Task SetAppearanceDataAsync(this IVehicle vehicle, string text) =>
 AltVAsync.Schedule(() => vehicle.AppearanceData = text);
Exemplo n.º 14
0
 public static Task <string> GetAppearanceDataAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.AppearanceData);
Exemplo n.º 15
0
 public static Task IsDestroyedAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.IsDestroyed);
Exemplo n.º 16
0
 public static Task SetScriptDataAsync(this IVehicle vehicle, string text) =>
 AltVAsync.Schedule(() => vehicle.ScriptData = text);
Exemplo n.º 17
0
 public static Task <IVehicle> AttachedToAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.AttachedTo);
Exemplo n.º 18
0
 public static Task RemoveAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(vehicle.Remove);
Exemplo n.º 19
0
 public static Task DetachAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(vehicle.Detach);
Exemplo n.º 20
0
 public static Task <bool> GetVisibleAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.Visible);
Exemplo n.º 21
0
 public static Task <Rgba> GetPrimaryColorRgbAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.PrimaryColorRgb);
Exemplo n.º 22
0
 public static Task SetPrimaryColorAsync(this IVehicle vehicle, byte primaryColor) =>
 AltVAsync.Schedule(() => vehicle.PrimaryColor = primaryColor);
Exemplo n.º 23
0
 public static Task SetWheelHealthAsync(this IVehicle vehicle, byte wheelId, float health) =>
 AltVAsync.Schedule(() => vehicle.SetWheelHealth(wheelId, health));
Exemplo n.º 24
0
 public static Task SetVisibleAsync(this IVehicle vehicle, bool visibility) =>
 AltVAsync.Schedule(() => vehicle.Visible = visibility);
Exemplo n.º 25
0
 public static Task <bool> IsWheelOnFireAsync(this IVehicle vehicle, byte wheelId) =>
 AltVAsync.Schedule(() => vehicle.IsWheelOnFire(wheelId));
Exemplo n.º 26
0
 public static Task <bool> GetStreamedAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.Streamed);
Exemplo n.º 27
0
 public static Task SetPrimaryColorRgbAsync(this IVehicle vehicle, Rgba primaryColor) =>
 AltVAsync.Schedule(() => vehicle.PrimaryColorRgb = primaryColor);
Exemplo n.º 28
0
 public static Task SetStreamedAsync(this IVehicle vehicle, bool isStreamed) =>
 AltVAsync.Schedule(() => vehicle.Streamed = isStreamed);
Exemplo n.º 29
0
 public static Task <bool> IsSecondaryColorRgbAsync(this IVehicle vehicle) =>
 AltVAsync.Schedule(() => vehicle.IsSecondaryColorRgb);
Exemplo n.º 30
0
 public static Task SetNeonActiveAsync(this IVehicle vehicle, bool left, bool right, bool front, bool back) =>
 AltVAsync.Schedule(() => vehicle.SetNeonActive(left, right, front, back));