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