/** * Copyright (c) 2025 Dominic Masters * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #pragma once #include "script/scriptcontext.h" /** * Register story flag module functions to the given script context. * * @param context The script context to register story flag module functions to. */ void moduleStoryFlag(scriptcontext_t *context); /** * Script binding for getting the value of a story flag. * * @param L The Lua state. * @return Number of return values on the Lua stack. */ int moduleStoryFlagGet(lua_State *L); /** * Script binding for setting the value of a story flag. * * @param L The Lua state. * @return Number of return values on the Lua stack. */ int moduleStoryFlagSet(lua_State *L); /** * Script binding for incrementing a story flag. * * @param L The Lua state. * @return Number of return values on the Lua stack. */ int moduleStoryFlagIncrement(lua_State *L); /** * Script binding for decrementing a story flag. * * @param L The Lua state. * @return Number of return values on the Lua stack. */ int moduleStoryFlagDecrement(lua_State *L);