// // Created by bruno on 4/24/25. // #include #include "../util/util.h" #include "../tiles/belt.h" #ifndef FACTORYGAME_ITEM_H #define FACTORYGAME_ITEM_H #define ITEMREGISTRY_SIZE 20 typedef struct { float offset; int tileX, tileY; bool active; uint16_t type; } ItemOnBelt; typedef struct { uint16_t type; char name[20]; SDL_Texture * texture[ORIENT_DIRECTION_COUNT]; SDL_Texture * textureOnBelt[ORIENT_DIRECTION_COUNT]; } Item; extern Item ItemRegistry[ITEMREGISTRY_SIZE]; void updateItems(); void loadItems(SDL_Renderer *renderer); void renderItem(ItemOnBelt item, SDL_Renderer *renderer, int lane); extern uint16_t itemRegistryIndex; extern uint8_t laneTarget; extern float speed; void putItem(int x, int y, uint16_t itemType, uint8_t lane, uint8_t itemIndex); #endif //FACTORYGAME_ITEM_H