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
falsycat 80b3b82332 [RELEASE] u22-v04
This version is submitted for U22 final presentation. (squashed 158 commits)
2021-02-07 00:00:00 +00:00

41 lines
839 B
C

#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
);