This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/loeffect/generic.h

41 lines
839 B
C
Raw Permalink Normal View History

#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <msgpack.h>
typedef struct {
float amount;
} loeffect_generic_immediate_param_t;
typedef struct {
uint64_t start;
uint64_t duration;
float amount;
} loeffect_generic_lasting_param_t;
void
loeffect_generic_immediate_param_pack(
const loeffect_generic_immediate_param_t* param,
msgpack_packer* packer
);
bool
loeffect_generic_immediate_param_unpack(
loeffect_generic_immediate_param_t* param,
const msgpack_object* obj
);
void
loeffect_generic_lasting_param_pack(
const loeffect_generic_lasting_param_t* param,
msgpack_packer* packer
);
bool
loeffect_generic_lasting_param_unpack(
loeffect_generic_lasting_param_t* param,
const msgpack_object* obj
);