fractive
Version:
Fractive is a hypertext authoring tool, primarily intended for the creation of interactive fiction.
22 lines (21 loc) • 839 B
TypeScript
export declare namespace Core {
enum EGotoSectionReason {
Goto = 0,
Back = 1,
Refresh = 2,
}
function ActivateElement(element: Element): void;
function AddEventListener(eventName: string, handler: () => void): void;
function BeginStory(): void;
function ExpandMacro(macro: string): string;
function GetCurrentSectionTags(): Array<string>;
function GetSection(id: string): Element;
function GetSectionsWithTag(tag: string): Array<string>;
function GetSectionTags(id: string): Array<string>;
function GotoPreviousSection(): void;
function GoToPreviousSection(): void;
function GotoSection(id: string): void;
function GoToSection(id: string): void;
function RefreshCurrentSection(): void;
function ReplaceActiveElement(id: string, html: string): void;
}