diff options
| author | physick <mynameisgennadiy@vk.com> | 2026-08-30 16:14:59 +0500 |
|---|---|---|
| committer | physick <mynameisgennadiy@vk.com> | 2026-08-30 16:14:59 +0500 |
| commit | 1e7ec08dc9c62df43940d00c1fae4a6e54464b86 (patch) | |
| tree | ee4f3170153fd4dc88feb35b13d541e910780711 /src/puzzles/puzzle.h | |
| parent | 935ed0235d0454cd18559fb0f6ee58e0647723fd (diff) | |
puzzle collection rewrite
Diffstat (limited to 'src/puzzles/puzzle.h')
| -rw-r--r-- | src/puzzles/puzzle.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stddef.h> #include <wren.h> +#include <raylib.h> #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 |
