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 84c3a02b9a [RELEASE] u22-v03
This version is submitted to U22 breau.
2020-09-14 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 begin;
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
);