#nullable enable using Godot; using System; using System.ComponentModel; using System.Linq; using VariantGArray = Godot.Collections.Array; namespace GodotInk; public partial class InkStory { #pragma warning disable IDE0022 /// /// This method is here for GDScript compatibility. Use instead. /// [EditorBrowsable(EditorBrowsableState.Never)] public bool GetCanContinue() => CanContinue; /// /// This method is here for GDScript compatibility. Use instead. /// [EditorBrowsable(EditorBrowsableState.Never)] public Godot.Collections.Array GetCurrentChoices() => new(CurrentChoices); /// /// This method is here for GDScript compatibility. Use instead. /// [EditorBrowsable(EditorBrowsableState.Never)] public Godot.Collections.Array GetCurrentTags() => new(CurrentTags); /// /// This method is here for GDScript compatibility. Use instead. /// [EditorBrowsable(EditorBrowsableState.Never)] public string GetCurrentText() => CurrentText; #pragma warning restore IDE0022 [EditorBrowsable(EditorBrowsableState.Never)] public void ChoosePathString(string path) { ChoosePathString(path, true, Array.Empty()); } [EditorBrowsable(EditorBrowsableState.Never)] public void ChoosePathString(string path, bool resetCallstack) { ChoosePathString(path, resetCallstack, Array.Empty()); } [EditorBrowsable(EditorBrowsableState.Never)] public void ChoosePathString(string path, VariantGArray arguments) { ChoosePathString(path, true, arguments.ToArray()); } [EditorBrowsable(EditorBrowsableState.Never)] public void ChoosePathString(string path, bool resetCallstack, VariantGArray arguments) { ChoosePathString(path, resetCallstack, arguments.ToArray()); } /// /// Evaluates a function defined in ink. /// /// The name of the function as declared in ink. /// /// The return value as returned from the ink function with `~ return myValue`, or a nil /// variant if nothing is returned. /// [EditorBrowsable(EditorBrowsableState.Never)] public Variant EvaluateFunction(string functionName) { return EvaluateFunction(functionName, Array.Empty()); } [EditorBrowsable(EditorBrowsableState.Never)] public void BindExternalFunction(string funcName, Callable callable) { BindExternalFunction(funcName, callable, false); } }