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

41 lines
675 B
C

#pragma once
#include "util/math/vector.h"
#include "core/loeffect/effect.h"
#include "./entity.h"
#include "./decl.private.h"
typedef struct {
void
(*apply_effect)(
loentity_character_t* chara,
const loeffect_t* effect
);
void
(*knockback)(
loentity_character_t* chara,
const vec2_t* v
);
} loentity_character_vtable_t;
struct loentity_character_t {
loentity_t super;
loentity_character_vtable_t vtable;
};
void
loentity_character_apply_effect(
loentity_character_t* chara,
const loeffect_t* effect
);
void
loentity_character_knockback(
loentity_character_t* chara,
const vec2_t* v
);