diff --git a/CMakeLists.txt b/CMakeLists.txt index 86054db..7b3ac3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -project(SCS_SDK VERSION 1.10) +project(SCS_SDK VERSION 1.11) set(SDK_SOURCES include/scs/scssdk.h diff --git a/include/scs/amtrucks/scssdk_telemetry_ats.h b/include/scs/amtrucks/scssdk_telemetry_ats.h index 685ebc5..47e1ec6 100644 --- a/include/scs/amtrucks/scssdk_telemetry_ats.h +++ b/include/scs/amtrucks/scssdk_telemetry_ats.h @@ -29,11 +29,13 @@ SCSSDK_HEADER * 1.00 - initial version - corresponds to 1.12 in ETS2 * 1.01 - added support for multiple trailers (doubles, triples), trailer ownership support, * gameplay events support added + * 1.02 - added planned_distance_km to active job info */ //@{ #define SCS_TELEMETRY_ATS_GAME_VERSION_1_00 SCS_MAKE_VERSION(1, 0) #define SCS_TELEMETRY_ATS_GAME_VERSION_1_01 SCS_MAKE_VERSION(1, 1) -#define SCS_TELEMETRY_ATS_GAME_VERSION_CURRENT SCS_TELEMETRY_ATS_GAME_VERSION_1_01 +#define SCS_TELEMETRY_ATS_GAME_VERSION_1_02 SCS_MAKE_VERSION(1, 2) // Patch 1.36 +#define SCS_TELEMETRY_ATS_GAME_VERSION_CURRENT SCS_TELEMETRY_ATS_GAME_VERSION_1_02 //@} // Game specific units. diff --git a/include/scs/common/scssdk_telemetry_common_configs.h b/include/scs/common/scssdk_telemetry_common_configs.h index 6bafa25..8965752 100644 --- a/include/scs/common/scssdk_telemetry_common_configs.h +++ b/include/scs/common/scssdk_telemetry_common_configs.h @@ -100,7 +100,7 @@ SCSSDK_HEADER * * If there are less trailers in game than @c SCS_TELEMETRY_trailers_count * telemetry will return all configurations however starting from the trailer after last - * existing one its attributes will be empty. (only one unnamed attribute will be returned) + * existing one its attributes will be empty. * * Supported attributes: * @li id @@ -109,8 +109,8 @@ SCSSDK_HEADER * @li brand_id * @li brand * @li name - * @li chain_type - * @li body_type + * @li chain_type (reported only for first trailer) + * @li body_type (reported only for first trailer) * @li license_plate * @li license_plate_country * @li license_plate_country_id @@ -141,6 +141,7 @@ SCSSDK_HEADER * @li is_cargo_loaded * @li job_market * @li special_job + * @li planned_distance_km */ #define SCS_TELEMETRY_CONFIG_job "job" @@ -606,6 +607,14 @@ SCSSDK_HEADER */ #define SCS_TELEMETRY_CONFIG_ATTRIBUTE_delivery_time "delivery.time" +/** + * @brief Planned job distance in simulated kilometers. + * + * Does not include distance driven using ferry. + * + * Type: u32 + */ +#define SCS_TELEMETRY_CONFIG_ATTRIBUTE_planned_distance_km "planned_distance.km" /** * @brief Is cargo loaded on the trailer? diff --git a/include/scs/eurotrucks2/scssdk_telemetry_eut2.h b/include/scs/eurotrucks2/scssdk_telemetry_eut2.h index 58172f7..220d304 100644 --- a/include/scs/eurotrucks2/scssdk_telemetry_eut2.h +++ b/include/scs/eurotrucks2/scssdk_telemetry_eut2.h @@ -50,6 +50,7 @@ SCSSDK_HEADER * by ETS2 1.24 and older. * 1.14 - added support for multiple trailers (doubles, triples), trailer ownership support, * gameplay events support added + * 1.15 - added planned_distance_km to active job info */ //@{ #define SCS_TELEMETRY_EUT2_GAME_VERSION_1_00 SCS_MAKE_VERSION(1, 0) @@ -67,7 +68,8 @@ SCSSDK_HEADER #define SCS_TELEMETRY_EUT2_GAME_VERSION_1_12 SCS_MAKE_VERSION(1, 12) // Patch 1.17 #define SCS_TELEMETRY_EUT2_GAME_VERSION_1_13 SCS_MAKE_VERSION(1, 13) // Patch 1.27 #define SCS_TELEMETRY_EUT2_GAME_VERSION_1_14 SCS_MAKE_VERSION(1, 14) // Patch 1.35 -#define SCS_TELEMETRY_EUT2_GAME_VERSION_CURRENT SCS_TELEMETRY_EUT2_GAME_VERSION_1_14 +#define SCS_TELEMETRY_EUT2_GAME_VERSION_1_15 SCS_MAKE_VERSION(1, 15) // Patch 1.36 +#define SCS_TELEMETRY_EUT2_GAME_VERSION_CURRENT SCS_TELEMETRY_EUT2_GAME_VERSION_1_15 //@} // Game specific units.