Search Results for

    Show / Hide Table of Contents

    Class VisitTracker

    Opt-in visit tracking for dialogue conversations and arbitrary keys. Nothing is tracked unless Mark(string) is called explicitly. Visited state can be checked from dialogue using {{If(Visited("Tavern"))}}.

    Inheritance
    object
    VisitTracker
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Ibralogue
    Assembly: .dll
    Syntax
    public static class VisitTracker

    Methods

    | Edit this page View Source

    Clear()

    Clears all visit records.

    Declaration
    public static void Clear()
    | Edit this page View Source

    ExportState()

    Exports all visited keys for serialization by a save system.

    Declaration
    public static VisitSnapshot ExportState()
    Returns
    Type Description
    VisitSnapshot
    | Edit this page View Source

    HasVisited(string)

    Returns true if the key has been marked as visited.

    Declaration
    public static bool HasVisited(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    bool
    | Edit this page View Source

    ImportState(VisitSnapshot)

    Restores visit state from a previously exported snapshot. Clears all existing records before importing.

    Declaration
    public static void ImportState(VisitSnapshot snapshot)
    Parameters
    Type Name Description
    VisitSnapshot snapshot
    | Edit this page View Source

    Mark(string)

    Marks a key as visited.

    Declaration
    public static void Mark(string key)
    Parameters
    Type Name Description
    string key
    • Edit this page
    • View Source
    In this article
    Back to top Ibralogue Docs