Skip to content

Commit

Permalink
Moved condition, added regions to string utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
ben_singer committed Nov 16, 2024
1 parent 086a342 commit 6a04790
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NetAF.Assets.Interaction
namespace NetAF.Assets
{
/// <summary>
/// Represents a callback for conditions.
Expand Down
4 changes: 1 addition & 3 deletions NetAF/Assets/ConditionalDescription.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using NetAF.Assets.Interaction;

namespace NetAF.Assets
namespace NetAF.Assets
{
/// <summary>
/// Represents a conditional description of an object.
Expand Down
7 changes: 2 additions & 5 deletions NetAF/Assets/ExaminationResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ namespace NetAF.Assets
/// </summary>
public class ExaminationResult : Result
{
#region Methods
#region Constructors

/// <summary>
/// Initializes a new instance of the ExaminationResult class.
/// </summary>
/// <param name="description">A description of the result.</param>
public ExaminationResult(string description)
{
Description = description;
}
public ExaminationResult(string description) => Description = description;

#endregion
}
Expand Down
8 changes: 8 additions & 0 deletions NetAF/Utilities/StringUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ namespace NetAF.Utilities
/// </summary>
public static class StringUtilities
{
#region Constants

/// <summary>
/// Get the new line string.
/// </summary>
Expand All @@ -27,6 +29,10 @@ public static class StringUtilities
/// </summary>
public const char CR = (char)13;

#endregion

#region StaticMethods

/// <summary>
/// Preen input to remove any ambiguity around special characters.
/// </summary>
Expand Down Expand Up @@ -169,5 +175,7 @@ public static string ConstructAttributesAsString(Dictionary<Attribute, int> attr

return builder.ToString();
}

#endregion
}
}

0 comments on commit 6a04790

Please sign in to comment.