Add a change counter value special order type

This commit is contained in:
Jonathan G Rennison
2022-10-13 20:09:20 +01:00
parent 7167175aa5
commit 38c2fa3b66
11 changed files with 302 additions and 28 deletions

View File

@@ -1111,6 +1111,13 @@ struct TraceRestrictCounter : TraceRestrictCounterPool::PoolItem<&_tracerestrict
}
void UpdateValue(int32 new_value);
static int32 ApplyValue(int32 current, TraceRestrictCounterCondOpField op, int32 value);
void ApplyUpdate(TraceRestrictCounterCondOpField op, int32 value)
{
this->UpdateValue(TraceRestrictCounter::ApplyValue(this->value, op, value));
}
};
#endif /* TRACERESTRICT_H */