we ball I guess

This commit is contained in:
2026-06-07 19:51:54 -05:00
parent f8c9d33df2
commit 51388c90d5
42 changed files with 2233 additions and 30 deletions
+30
View File
@@ -0,0 +1,30 @@
/**
* Copyright (c) 2026 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
/** Opaque type alias for story flag identifier constants. */
type StoryFlag = number;
/** Story flag read/write access. */
interface StoryNamespace {
/**
* Returns the current value of a story flag (0255).
* @param flagId - A `STORY_FLAG_*` constant.
*/
get(flagId: StoryFlag): number;
/**
* Sets a story flag to a new value.
* @param flagId - A `STORY_FLAG_*` constant.
* @param value - New value, 0255.
*/
set(flagId: StoryFlag, value: number): void;
}
declare var Story: StoryNamespace;
// Story flag constants — injected as globals by the engine at startup.
declare var STORY_FLAG_TEST: StoryFlag;