Skip to content

Commit

Permalink
Merge pull request #1826 from goatcorp/apiX-rollup
Browse files Browse the repository at this point in the history
[apiX] Rollup changes from master
  • Loading branch information
goaaats authored Jun 9, 2024
2 parents a32ad1b + 4e331b1 commit e06057f
Show file tree
Hide file tree
Showing 28 changed files with 1,320 additions and 341 deletions.
5 changes: 4 additions & 1 deletion Dalamud/Configuration/Internal/PluginTestingOptIn.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
namespace Dalamud.Configuration.Internal;

public record PluginTestingOptIn
/// <summary>
/// Represents a plugin that has opted in to testing.
/// </summary>
internal record PluginTestingOptIn
{
/// <summary>
/// Initializes a new instance of the <see cref="PluginTestingOptIn"/> class.
Expand Down
27 changes: 27 additions & 0 deletions Dalamud/Console/ConsoleArgumentType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
namespace Dalamud.Console;

/// <summary>
/// Possible console argument types.
/// </summary>
internal enum ConsoleArgumentType
{
/// <summary>
/// A regular string.
/// </summary>
String,

/// <summary>
/// A signed integer.
/// </summary>
Integer,

/// <summary>
/// A floating point value.
/// </summary>
Float,

/// <summary>
/// A boolean value.
/// </summary>
Bool,
}
44 changes: 44 additions & 0 deletions Dalamud/Console/ConsoleEntry.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using System.Collections.Generic;

namespace Dalamud.Console;

/// <summary>
/// Interface representing an entry in the console.
/// </summary>
public interface IConsoleEntry
{
/// <summary>
/// Gets the name of the entry.
/// </summary>
public string Name { get; }

/// <summary>
/// Gets the description of the entry.
/// </summary>
public string Description { get; }
}

/// <summary>
/// Interface representing a command in the console.
/// </summary>
public interface IConsoleCommand : IConsoleEntry
{
/// <summary>
/// Execute this command.
/// </summary>
/// <param name="arguments">Arguments to invoke the entry with.</param>
/// <returns>Whether or not execution succeeded.</returns>
public bool Invoke(IEnumerable<object> arguments);
}

/// <summary>
/// Interface representing a variable in the console.
/// </summary>
/// <typeparam name="T">The type of the variable.</typeparam>
public interface IConsoleVariable<T> : IConsoleEntry
{
/// <summary>
/// Gets or sets the value of this variable.
/// </summary>
T Value { get; set; }
}
Loading

0 comments on commit e06057f

Please sign in to comment.