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

29 lines
620 B
C
Raw Normal View History

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