diff --git a/irsdk.py b/irsdk.py index baef7fa..a3cbb57 100644 --- a/irsdk.py +++ b/irsdk.py @@ -15,7 +15,7 @@ except ImportError: from yaml import SafeLoader as YamlSafeLoader -VERSION = '1.3.3' +VERSION = '1.3.4' SIM_STATUS_URL = 'http://127.0.0.1:32034/get_sim_status?object=simStatus' @@ -233,11 +233,12 @@ class PaceMode: not_pacing = 4 class PaceFlags: - end_of_line = 0x01 - free_pass = 0x02 - waved_around = 0x04 + end_of_line = 0x0001 + free_pass = 0x0002 + waved_around = 0x0004 class CarLeftRight: + off = 0 clear = 1 # no cars around us. car_left = 2 # there is a car to our left. car_right = 3 # there is a car to our right. @@ -256,6 +257,18 @@ class VideoCaptureMode: show_video_timer = 4 # show video timer in upper left corner of display hide_video_timer = 5 # hide video timer +class WeatherDynamics: + specified_fixed_sky = 0 # specified weather / fixed sky + generated_sky_moves = 1 # generated weather / dynamic sky + generated_fixed_sky = 2 # generated weather / fixed sky + specified_sky_moves = 3 # constant weather / dynamic sky + +class WeatherVersion: + classic = 0 # default init in replays prior to W2 being rolled out (no rain) + forecast_based = 1 # usual way to handle realistic weather in W2 + static_test_day = 2 # W2 version of "WEATHER_DYNAMICS_GENERATED_FIXEDSKY" that adds possibility of track water + timeline_based = 3 # a timeline of desired specific events in W2 + class IRSDKStruct: @classmethod