mirror of
https://github.com/zoriya/ForecastingVillage.git
synced 2025-12-06 05:46:09 +00:00
29 lines
506 B
C
29 lines
506 B
C
/*
|
|
** EPITECH PROJECT, 2019
|
|
** Gamacon
|
|
** File description:
|
|
** xp_component
|
|
*/
|
|
|
|
#ifndef MY_RPG_XP_COMPONENT_H
|
|
#define MY_RPG_XP_COMPONENT_H
|
|
|
|
#include <stdbool.h>
|
|
#include "component.h"
|
|
|
|
struct xp_component
|
|
{
|
|
gc_component base;
|
|
int xp;
|
|
bool full;
|
|
};
|
|
|
|
void xp_add(struct xp_component *this, gc_engine *engine, \
|
|
unsigned int amount);
|
|
void xp_rem(struct xp_component *this, gc_engine *engine, \
|
|
unsigned int amount);
|
|
|
|
extern const struct xp_component xp_component;
|
|
|
|
#endif //MY_RPG_XP_COMPONENT_H
|