-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1826 from goatcorp/apiX-rollup
[apiX] Rollup changes from master
- Loading branch information
Showing
28 changed files
with
1,320 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} |
Oops, something went wrong.