From 1e7ec08dc9c62df43940d00c1fae4a6e54464b86 Mon Sep 17 00:00:00 2001 From: physick Date: Sun, 30 Aug 2026 16:14:59 +0500 Subject: puzzle collection rewrite --- src/puzzles/puzzle.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/puzzles/puzzle.h') diff --git a/src/puzzles/puzzle.h b/src/puzzles/puzzle.h index e8180e1..90ee160 100644 --- a/src/puzzles/puzzle.h +++ b/src/puzzles/puzzle.h @@ -1,5 +1,6 @@ #include #include +#include #ifndef PUZZLE_H #define PUZZLE_H @@ -92,4 +93,21 @@ typedef struct { DistractionPuzzle *GetRandomDistraction(); void FreeDistrationPuzzle(DistractionPuzzle *puzzle); +typedef enum { + COLLECTION_ELEMENT_PUZZLE, + COLLECTION_ELEMENT_COLLECTION, + COLLECTION_ELEMENT_UNKNOWN +} CollectionElementType; + +typedef struct CollectionElement { + char *path; + struct CollectionElement *children; + size_t childCount; + Texture2D *icon; + bool IsInitialized; + CollectionElementType type; +} CollectionElement; + +void InitializeCollection(CollectionElement *el); + #endif // PUZZLE_H -- cgit v1.3