Skip to content

Commit 1af8f4a

Browse files
author
José Miguel Sánchez Fernández
authored
Merge pull request #4 from VisualStudioEX3/feature/fixed-documentation
Updated and fixed documentation.
2 parents f8f988a + 83561de commit 1af8f4a

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

DIV2.Format.Exporter/ColorPalette.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public enum ColorFormat : byte
2020
/// </summary>
2121
DAC = Color.MAX_DAC_VALUE,
2222
/// <summary>
23-
/// RGB format [0.255].
23+
/// RGB format [0..255].
2424
/// </summary>
2525
RGB = byte.MaxValue
2626
}
@@ -295,7 +295,7 @@ public Color ToDAC()
295295
/// Gets a <see cref="Vector3"/> with normalized values [0..1].
296296
/// </summary>
297297
/// <param name="colorType">Indicate the color range for set the normalization factor.</param>
298-
/// <returns>Returns a <see cref="Vector3"/> with the <see cref="Color"/> componentes normalized.</returns>
298+
/// <returns>Returns a <see cref="Vector3"/> with the <see cref="Color"/> components normalized.</returns>
299299
public Vector3 Normalize(ColorFormat colorType)
300300
{
301301
float factor = (float)colorType;
@@ -350,7 +350,7 @@ public override bool Equals(object obj)
350350
/// <summary>
351351
/// Generates a hash code for this instance.
352352
/// </summary>
353-
/// <returns>Returns an <see cref="int"/> value compose with the RGB values for the first 3 bytes and a zero for fourth byte.</returns>
353+
/// <returns>Returns an <see cref="int"/> value composed by the RGB values for the first 3 bytes and a zero for fourth byte.</returns>
354354
public override int GetHashCode()
355355
{
356356
return BitConverter.ToInt32(new byte[] { this.red, this.green, this.blue, 0 }, 0);

DIV2.Format.Exporter/ExtensionMethods/ByteExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static byte ClearBits(this byte value, byte mask)
2424
/// Calculates the checksum of this <see cref="string"/>.
2525
/// </summary>
2626
/// <param name="buffer"><see cref="byte"/> array.</param>
27-
/// <returns>Returns the checksum string of this <see cref="byte"/> array.</returns>
27+
/// <returns>Returns the checksum <see cref="string"/> value of this <see cref="byte"/> array.</returns>
2828
public static string CalculateChecksum(this byte[] buffer)
2929
{
3030
return HashGenerator.CalculateChecksum(buffer);

DIV2.Format.Exporter/ExtensionMethods/MathExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static class MathExtensions
1212
/// <param name="value"><see cref="int"/> value instance.</param>
1313
/// <param name="min">Min value of the range.</param>
1414
/// <param name="max">Max value of the range.</param>
15-
/// <returns>Returns true if the value is in range.</returns>
15+
/// <returns>Returns <see langword="true"/> if the value is in range.</returns>
1616
public static bool IsClamped(this int value, int min, int max)
1717
{
1818
return value >= min && value <= max;
@@ -24,7 +24,7 @@ public static bool IsClamped(this int value, int min, int max)
2424
/// <param name="value"><see cref="uint"/> value instance.</param>
2525
/// <param name="min">Min value of the range.</param>
2626
/// <param name="max">Max value of the range.</param>
27-
/// <returns>Returns true if the value is in range.</returns>
27+
/// <returns>Returns <see langword="true"/> if the value is in range.</returns>
2828
public static bool IsClamped(this uint value, uint min, uint max)
2929
{
3030
return value >= min && value <= max;
@@ -36,7 +36,7 @@ public static bool IsClamped(this uint value, uint min, uint max)
3636
/// <param name="value"><see cref="short"/> value instance.</param>
3737
/// <param name="min">Min value of the range.</param>
3838
/// <param name="max">Max value of the range.</param>
39-
/// <returns>Returns true if the value is in range.</returns>
39+
/// <returns>Returns <see langword="true"/> if the value is in range.</returns>
4040
public static bool IsClamped(this short value, short min, short max)
4141
{
4242
return value >= min && value <= max;
@@ -48,7 +48,7 @@ public static bool IsClamped(this short value, short min, short max)
4848
/// <param name="value"><see cref="byte"/> value instance.</param>
4949
/// <param name="min">Min value of the range.</param>
5050
/// <param name="max">Max value of the range.</param>
51-
/// <returns>Returns true if the value is in range.</returns>
51+
/// <returns>Returns <see langword="true"/> if the value is in range.</returns>
5252
public static bool IsClamped(this byte value, byte min, byte max)
5353
{
5454
return value >= min && value <= max;

DIV2.Format.Exporter/ExtensionMethods/StringExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ public static class StringExtensions
1010
{
1111
#region Methods & Functions
1212
/// <summary>
13-
/// Get <see cref="string"/> representation, without null chars and other possible garbage data.
13+
/// Gets <see cref="string"/> representation, without null chars and other possible garbage data.
1414
/// </summary>
1515
/// <param name="buffer"><see cref="byte"/> array with the ASCIIZ string data (ASCII null terminated string or C string).</param>
16-
/// <returns></returns>
16+
/// <returns>Returns a <see cref="string"/> instance in ASCII format, terminated with null chars.</returns>
1717
public static string ToASCIIString(this byte[] buffer)
1818
{
1919
int i;
@@ -46,7 +46,7 @@ public static byte[] ToByteArray(this string text)
4646
}
4747

4848
/// <summary>
49-
/// Get a binary representation of this <see cref="string"/> in ASCIIZ format (ASCII null terminated string or C string).
49+
/// Gets a binary representation of this <see cref="string"/> in ASCIIZ format (ASCII null terminated string or C string).
5050
/// </summary>
5151
/// <param name="text">This <see cref="string"/> instance.</param>
5252
/// <param name="length">Characters length.</param>

DIV2.Format.Exporter/FPG.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ int OrderByAsc(Register x, Register y)
343343
/// <summary>
344344
/// Adds a <see cref="MAP"/> file.
345345
/// </summary>
346-
/// <param name="filename">Filename to load.</param>
346+
/// <param name="filename"><see cref="MAP"/> file to load.</param>
347347
public void Add(string filename)
348348
{
349349
this.Add(new MAP(File.ReadAllBytes(filename)));

0 commit comments

Comments
 (0)