Add types.h, standardize integer types on stdint
This commit is contained in:
@@ -2,20 +2,21 @@
|
||||
#define _AKGL_CHARACTER_H_
|
||||
|
||||
#include <SDL3/SDL_properties.h>
|
||||
#include "types.h"
|
||||
#include "sprite.h"
|
||||
|
||||
#define AKGL_SPRITE_MAX_CHARACTER_NAME_LENGTH 128
|
||||
#define AKGL_MAX_HEAP_CHARACTER 256
|
||||
|
||||
typedef struct akgl_Character {
|
||||
int refcount;
|
||||
uint8_t refcount;
|
||||
char name[AKGL_SPRITE_MAX_CHARACTER_NAME_LENGTH];
|
||||
SDL_PropertiesID state_sprites;
|
||||
akerr_ErrorContext AKERR_NOIGNORE *(*sprite_add)(struct akgl_Character *, akgl_Sprite *, int);
|
||||
akerr_ErrorContext AKERR_NOIGNORE *(*sprite_get)(struct akgl_Character *, int, akgl_Sprite **);
|
||||
long int movementspeed;
|
||||
float vx;
|
||||
float vy;
|
||||
uint64_t movementspeed;
|
||||
float32_t vx;
|
||||
float32_t vy;
|
||||
} akgl_Character;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user