Add tracerestrict reserved tiles ahead conditional

This commit is contained in:
Jonathan G Rennison
2021-02-13 03:13:36 +00:00
parent 35d720b0ad
commit aff89b61f5
5 changed files with 21 additions and 3 deletions

View File

@@ -151,6 +151,7 @@ enum TraceRestrictItemType {
TRIT_COND_LOAD_PERCENT = 26, ///< Test train load percentage
TRIT_COND_COUNTER_VALUE = 27, ///< Test counter value
TRIT_COND_TIME_DATE_VALUE = 28, ///< Test time/date value
TRIT_COND_RESERVED_TILES = 29, ///< Test reserved tiles ahead of train
TRIT_COND_END = 48, ///< End (exclusive) of conditional item types, note that this has the same value as TRIT_REVERSE
TRIT_REVERSE = 48, ///< Reverse behind signal
@@ -753,6 +754,10 @@ static inline TraceRestrictTypePropertySet GetTraceRestrictTypeProperties(TraceR
out.value_type = TRVT_TIME_DATE_INT;
break;
case TRIT_COND_RESERVED_TILES:
out.value_type = TRVT_INT;
break;
default:
NOT_REACHED();
break;