Skip to content

Commit

Permalink
added WeatherDynamics and WeatherVersion enums
Browse files Browse the repository at this point in the history
  • Loading branch information
kutu committed Mar 5, 2024
1 parent cbc325b commit 950d148
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions irsdk.py
Expand Up @@ -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'

Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 950d148

Please sign in to comment.