Working on some script modules
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user