Add types.h, standardize integer types on stdint

This commit is contained in:
2026-05-08 22:01:56 -04:00
parent 5dda86d887
commit e0a59e2447
14 changed files with 129 additions and 48 deletions

View File

@@ -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;