summaryrefslogtreecommitdiff
path: root/src/puzzles/puzzle.h
diff options
context:
space:
mode:
authorphysick <mynameisgennadiy@vk.com>2026-08-30 16:14:59 +0500
committerphysick <mynameisgennadiy@vk.com>2026-08-30 16:14:59 +0500
commit1e7ec08dc9c62df43940d00c1fae4a6e54464b86 (patch)
treeee4f3170153fd4dc88feb35b13d541e910780711 /src/puzzles/puzzle.h
parent935ed0235d0454cd18559fb0f6ee58e0647723fd (diff)
puzzle collection rewrite
Diffstat (limited to 'src/puzzles/puzzle.h')
-rw-r--r--src/puzzles/puzzle.h18
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