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/loentity/character.c
falsycat 84c3a02b9a [RELEASE] u22-v03
This version is submitted to U22 breau.
2020-09-14 00:00:00 +00:00

29 lines
620 B
C

#include "./character.h"
#include <assert.h>
#include <stddef.h>
#include "core/loeffect/effect.h"
#include "./entity.h"
#include "./decl.private.h"
void loentity_character_apply_effect(
loentity_character_t* chara, const loeffect_t* effect) {
assert(chara != NULL);
assert(effect != NULL);
assert(chara->vtable.apply_effect != NULL);
chara->vtable.apply_effect(chara, effect);
}
void loentity_character_knockback(
loentity_character_t* chara, const vec2_t* v) {
assert(chara != NULL);
assert(v != NULL);
assert(chara->vtable.knockback != NULL);
chara->vtable.knockback(chara, v);
}