aboutsummaryrefslogtreecommitdiffstats
path: root/src/sldj.h
diff options
context:
space:
mode:
authornathansmith117 <nathansmith117@sdf.org>2025-02-04 11:29:07 +0000
committernathansmith117 <nathansmith117@sdf.org>2025-02-04 11:29:07 +0000
commitfe9b718f8978cfd792f7303214b2dd45172b8d4b (patch)
tree8efd867eae12ad5d55d29e964272974ee3d71b18 /src/sldj.h
parentfb7ccc0c046ed80fdac2e829b8c367841600e211 (diff)
downloadsldj-fe9b718f8978cfd792f7303214b2dd45172b8d4b.tar.gz
sldj-fe9b718f8978cfd792f7303214b2dd45172b8d4b.tar.bz2
sldj-fe9b718f8978cfd792f7303214b2dd45172b8d4b.zip
Working on script context
Diffstat (limited to 'src/sldj.h')
-rw-r--r--src/sldj.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sldj.h b/src/sldj.h
index 1db4331..7788a86 100644
--- a/src/sldj.h
+++ b/src/sldj.h
@@ -6,8 +6,8 @@
#include <raylib.h>
#include "sldjConfig.h"
-#include "util.h"
#include "scripting.h"
+#include "libsldj/util.h"
#ifndef SLDJ_H
#define SLDJ_H
@@ -16,10 +16,13 @@ typedef struct Sldj {
RenderTexture viewport;
uint32_t frameCounter;
+
+ // Used for always using a 0 to 2**16 range when scanning.
uint16_t xCount;
uint16_t yCount;
SldjScripting scripting;
+ char scriptFilepath[SLDJ_NAMEMAX];
} Sldj;
void initSldj(Sldj* sldj);
@@ -27,5 +30,7 @@ void updateSldj(Sldj* sldj);
void closeSldj(Sldj* sldj);
void resetViewport(Sldj* sldj, int width, int height);
+void reloadScriptContext(Sldj* sldj);
+void reloadScript(Sldj* sldj);
#endif