-
Notifications
You must be signed in to change notification settings - Fork 0
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 #4 from NeluQi/Nelu
formatted code
- Loading branch information
Showing
13 changed files
with
1,436 additions
and
1,183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,44 @@ | ||
#region copyright | ||
|
||
// (c) 2019 Nelu & 601 (github.com/NeluQi) | ||
// This code is licensed under MIT license (see LICENSE for details) | ||
|
||
#endregion copyright | ||
|
||
using System; | ||
|
||
/// <summary> | ||
/// | ||
/// Defines the <see cref="Command" /> | ||
/// </summary> | ||
public class Command | ||
{ | ||
public class Command { | ||
/// <summary> | ||
/// The Execute | ||
/// </summary> | ||
public delegate void Execute(); | ||
|
||
/// <summary> | ||
/// Defines the MyExecute | ||
/// </summary> | ||
private event Execute MyExecute; | ||
|
||
/// <summary> | ||
/// Gets the Alias | ||
/// </summary> | ||
private string[] Alias { get; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="Command"/> class. | ||
/// </summary> | ||
/// <param name="Alias">The Alias<see cref="string[]"/></param> | ||
/// <param name="execute">The execute<see cref="Execute"/></param> | ||
public Command(string[] Alias, Execute execute) //TODO: | ||
{ | ||
this.Alias = Alias ?? throw new ArgumentNullException("Àëèàñû êîìàíä íå ìîãóò áûòü ïóñòûìè", nameof(Alias)); | ||
MyExecute = execute ?? throw new ArgumentNullException("Äåëåãàò íå ìîæåò áûòü null", nameof(execute)); | ||
for (int i = 0; i <= this.Alias.Length; i++) | ||
this.Alias = Alias ?? throw new ArgumentNullException("Error", nameof(Alias)); | ||
MyExecute = execute ?? throw new ArgumentNullException("Error", nameof(execute)); | ||
for(int i = 0; i <= this.Alias.Length; i++) | ||
this.Alias[i].ToLower(); | ||
} | ||
|
||
public void Check(string cmd) | ||
{ | ||
//TODO: | ||
/// <summary> | ||
/// The Check | ||
/// </summary> | ||
/// <param name="cmd">The cmd<see cref="string"/></param> | ||
public void Check(string cmd) { | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,30 +1,33 @@ | ||
#region copyright | ||
|
||
// (c) 2019 Nelu & 601 (github.com/NeluQi) | ||
// (c) 2019 Nelu & 601 (github.com/NeluQi) | ||
// This code is licensed under MIT license (see LICENSE for details) | ||
|
||
#endregion copyright | ||
|
||
using System; | ||
|
||
/// <summary> | ||
///TODO: | ||
/// TODO: | ||
/// </summary> | ||
internal class ControllerCommand | ||
{ | ||
internal class ControllerCommand { | ||
/// <summary> | ||
/// Gets the Commands | ||
/// </summary> | ||
public Command[] Commands { get; } | ||
|
||
public ControllerCommand(string[] args) | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ControllerCommand"/> class. | ||
/// </summary> | ||
/// <param name="args">The args<see cref="string[]"/></param> | ||
public ControllerCommand(string[] args) { | ||
Commands = new Command[] { | ||
new Command(new string[]{"--consolemode", "-con"}, ConsoleMode) | ||
}; | ||
} | ||
|
||
//TODO: Parse com line | ||
public void ConsoleMode() | ||
{ | ||
/// <summary> | ||
/// The ConsoleMode | ||
/// </summary> | ||
public void ConsoleMode() { | ||
ConsoleHelper.Initialize(); | ||
Console.WriteLine("Run console mode"); | ||
} | ||
} | ||
} |
Oops, something went wrong.