Skip to content

Commit

Permalink
Merge pull request #860 from Miepee/johnny
Browse files Browse the repository at this point in the history
  • Loading branch information
Grossley authored Apr 26, 2022
2 parents 101393b + ec75760 commit 034250b
Show file tree
Hide file tree
Showing 3 changed files with 374 additions and 11 deletions.
70 changes: 70 additions & 0 deletions UndertaleModCli/CommandOptions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using System.Collections.Generic;
using System.IO;

namespace UndertaleModCli
{
//TODO: split these all up into individual files

/// <summary>
/// Cli options for the New command
/// </summary>
Expand Down Expand Up @@ -79,4 +82,71 @@ public class InfoOptions
/// </summary>
public bool Verbose { get; set; } = false;
}

/// <summary>
/// Cli options for the Dump command
/// </summary>
public class DumpOptions
{
/// <summary>
/// File path to the data file
/// </summary>
public FileInfo Datafile { get; set; }

/// <summary>
/// Directory path to where to dump all contents
/// </summary>
public DirectoryInfo? Output { get; set; }

/// <summary>
/// Determines if Cli should print out verbose logs
/// </summary>
public bool Verbose { get; set; } = false;

/// <summary>
/// Names of the code entries that should get dumped
/// </summary>
public string[] Code { get; set; }

/// <summary>
/// Determines if strings should get dumped.
/// </summary>
public bool Strings { get; set; }

/// <summary>
/// Determines if embedded textures should get dumped
/// </summary>
public bool Textures { get; set; }
}

/// <summary>
/// Cli options for the Replace command
/// </summary>
public class ReplaceOptions
{
/// <summary>
/// File path to the data file
/// </summary>
public FileInfo Datafile { get; set; }

/// <summary>
/// File path to where to save the modified data file
/// </summary>
public FileInfo? Output { get; set; }

/// <summary>
/// Determines if Cli should print out verbose logs
/// </summary>
public bool Verbose { get; set; } = false;

/// <summary>
/// Equal separated values of code entry and the file to replace the code entry with.
/// </summary>
public string[] Code { get; set; }

/// <summary>
/// Equal separated values of embedded texture and the file to replace the embedded texture with.
/// </summary>
public string[] Textures { get; set; }
}
}
Loading

0 comments on commit 034250b

Please sign in to comment.