Working on some script modules

This commit is contained in:
2026-05-05 16:22:04 -05:00
parent 6edcf75a0c
commit bb29c0edef
28 changed files with 712 additions and 229 deletions
+8 -1
View File
@@ -42,7 +42,14 @@ out += [
]
for flag in flags:
out.append(f" [{flag_enum(flag['id'])}] = {flag['initial']},")
out += ["};", ""]
out += [
"};",
"",
"static const char_t *STORY_FLAG_SCRIPT =",
]
for i, flag in enumerate(flags):
out.append(f" \"{flag_enum(flag['id'])} = {i + 1}\\n\"")
out += [";", ""]
os.makedirs(os.path.dirname(args.output), exist_ok=True)
with open(args.output, "w", encoding="utf-8") as f: