class
EventConverterMaps original events to extended event descriptions.
Public types
-
using ConversionFunction = Function<ConversionResult(JJ2Level*level, std::
uint32_t e)>
Public static functions
-
static void ConvertParamInt(std::
uint32_t paramInt, const ArrayView<const Pair<std:: int32_t, std:: int32_t>>& paramTypes, std:: uint8_t eventParams[16]) -
static void ConvertParamInt(std::
uint32_t paramInt, const std:: initializer_list<const Pair<std:: int32_t, std:: int32_t>> paramTypes, std:: uint8_t eventParams[16])
Constructors, destructors, conversion operators
Public functions
-
auto TryConvert(JJ2Level* level,
JJ2Event old,
std::
uint32_t eventParams) -> ConversionResult - void Add(JJ2Event originalEvent, ConversionFunction&& converter)
- void Override(JJ2Event originalEvent, ConversionFunction&& converter)
- auto NoParamList(EventType ev) -> ConversionFunction
-
auto ConstantParamList(EventType ev,
const std::
array<std:: uint8_t, 16>& eventParams) -> ConversionFunction -
auto ParamIntToParamList(EventType ev,
const std::
array<Pair<std:: int32_t, std:: int32_t>, 6>& paramDefs) -> ConversionFunction