diff options
Diffstat (limited to 'src/yabs_structs.h')
-rw-r--r-- | src/yabs_structs.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/yabs_structs.h b/src/yabs_structs.h new file mode 100644 index 0000000..c6f1d30 --- /dev/null +++ b/src/yabs_structs.h @@ -0,0 +1,48 @@ +/*********************************/ +/* YABS ( // */ +/* structs ( )/ */ +/* by salade )(/ */ +/* ________________ ( /) */ +/* ()__)____________))))) :^} */ +/*********************************/ + +#ifndef YABS_STRUCTS_H +#define YABS_STRUCTS_H + +#include "raylib.h" +#include <vector> + +namespace yabs { +namespace core { + +typedef struct Player { + int hp; + Vector3 pos; +}Player; + +typedef struct Enemy { + Vector3 enemyStartPos; + Vector3 enemyBoxPos; + Vector3 enemyBoxSize; + BoundingBox enemyBounds; + bool active; +} Enemy; + +typedef struct RenderObjs { + std::vector<Vector3 *> vEnemyPos; + Model & ground; +} RenderObjs; + +typedef struct TickObjs { + std::vector<BoundingBox *> vEnemyBounds; + std::vector<Vector3 *> vEnemyPos; + BoundingBox * range; + Vector3 * position; + bool * direction[4]; + bool * alive; +} TickObjs; + +} +} + +#endif /* YABS_STRUCTS_H */ |