Skip to content

Commit 2d54c09

Browse files
committed
Capitalize property names
1 parent d655dd9 commit 2d54c09

26 files changed

+88
-68
lines changed

Runtime/DataStructures/Accumulators/DoubleAccumulator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ public sealed class DoubleAccumulator : ValueAccumulator<double>
77
{
88
/// <inheritdoc/>
99
/// <param name="value">The value to add to the total.</param>
10-
protected override double Add(double value) => total + value;
10+
protected override double Add(double value) => Total + value;
1111

1212
/// <inheritdoc/>
1313
/// <param name="value">The value to subtract from the total.</param>
14-
protected override double Subtract(double value) => total - value;
14+
protected override double Subtract(double value) => Total - value;
1515
}
1616

1717
}

Runtime/DataStructures/Accumulators/FloatAccumulator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ public sealed class FloatAccumulator : ValueAccumulator<float>
77
{
88
/// <inheritdoc/>
99
/// <param name="value">The value to add to the total.</param>
10-
protected override float Add(float value) => total + value;
10+
protected override float Add(float value) => Total + value;
1111

1212
/// <inheritdoc/>
1313
/// <param name="value">The value to subtract from the total.</param>
14-
protected override float Subtract(float value) => total - value;
14+
protected override float Subtract(float value) => Total - value;
1515
}
1616

1717
}

Runtime/DataStructures/Accumulators/IntAccumulator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ public sealed class IntAccumulator : ValueAccumulator<int>
77
{
88
/// <inheritdoc/>
99
/// <param name="value">The value to add to the total.</param>
10-
protected override int Add(int value) => total + value;
10+
protected override int Add(int value) => Total + value;
1111

1212
/// <inheritdoc/>
1313
/// <param name="value">The value to subtract from the total.</param>
14-
protected override int Subtract(int value) => total - value;
14+
protected override int Subtract(int value) => Total - value;
1515
}
1616

1717
}

Runtime/DataStructures/Accumulators/QuaternionAccumulator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ namespace Zigurous.Architecture
88
public sealed class QuaternionAccumulator : ValueAccumulator<Quaternion>
99
{
1010
/// <inheritdoc/>
11-
protected override Quaternion defaultValue => Quaternion.identity;
11+
protected override Quaternion DefaultValue => Quaternion.identity;
1212

1313
/// <inheritdoc/>
1414
/// <param name="value">The value to add to the total.</param>
15-
protected override Quaternion Add(Quaternion value) => total * value;
15+
protected override Quaternion Add(Quaternion value) => Total * value;
1616

1717
/// <inheritdoc/>
1818
/// <param name="value">The value to subtract from the total.</param>
19-
protected override Quaternion Subtract(Quaternion value) => total * Quaternion.Inverse(value);
19+
protected override Quaternion Subtract(Quaternion value) => Total * Quaternion.Inverse(value);
2020
}
2121

2222
}

Runtime/DataStructures/Accumulators/ValueAccumulator.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ public abstract class ValueAccumulator<T>
1616
/// <summary>
1717
/// The total accumulated value (Read only).
1818
/// </summary>
19-
public T total { get; protected set; }
19+
public T Total { get; protected set; }
2020

2121
/// <summary>
2222
/// The number of unique values being accumulated (Read only).
2323
/// </summary>
24-
public int count => values.Count;
24+
public int Count => values.Count;
2525

2626
/// <summary>
2727
/// The default value of <typeparamref name="T"/>.
2828
/// </summary>
29-
protected virtual T defaultValue => default(T);
29+
protected virtual T DefaultValue => default(T);
3030

3131
/// <summary>
3232
/// Creates a new instance of the value accumulator.
3333
/// </summary>
3434
public ValueAccumulator()
3535
{
3636
values = new Dictionary<int, T>();
37-
total = defaultValue;
37+
Total = DefaultValue;
3838
}
3939

4040
/// <summary>
@@ -49,7 +49,7 @@ public T GetValue(int identifier)
4949
if (values.TryGetValue(identifier, out value)) {
5050
return value;
5151
} else {
52-
return defaultValue;
52+
return DefaultValue;
5353
}
5454
}
5555

@@ -66,13 +66,13 @@ public void SetValue(int identifier, T value)
6666

6767
if (values.TryGetValue(identifier, out currentValue))
6868
{
69-
total = Subtract(currentValue);
70-
total = Add(value);
69+
Total = Subtract(currentValue);
70+
Total = Add(value);
7171
values[identifier] = value;
7272
}
7373
else
7474
{
75-
total = Add(value);
75+
Total = Add(value);
7676
values.Add(identifier, value);
7777
}
7878
}
@@ -88,7 +88,7 @@ public void RemoveValue(int identifier)
8888

8989
if (values.TryGetValue(identifier, out value))
9090
{
91-
total = Subtract(value);
91+
Total = Subtract(value);
9292
values.Remove(identifier);
9393
}
9494
}
@@ -99,7 +99,7 @@ public void RemoveValue(int identifier)
9999
public void Clear()
100100
{
101101
values.Clear();
102-
total = defaultValue;
102+
Total = DefaultValue;
103103
}
104104

105105
/// <summary>

Runtime/DataStructures/Accumulators/Vector2Accumulator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ namespace Zigurous.Architecture
88
public sealed class Vector2Accumulator : ValueAccumulator<Vector2>
99
{
1010
/// <inheritdoc/>
11-
protected override Vector2 defaultValue => Vector2.zero;
11+
protected override Vector2 DefaultValue => Vector2.zero;
1212

1313
/// <inheritdoc/>
1414
/// <param name="value">The value to add to the total.</param>
15-
protected override Vector2 Add(Vector2 value) => total + value;
15+
protected override Vector2 Add(Vector2 value) => Total + value;
1616

1717
/// <inheritdoc/>
1818
/// <param name="value">The value to subtract from the total.</param>
19-
protected override Vector2 Subtract(Vector2 value) => total - value;
19+
protected override Vector2 Subtract(Vector2 value) => Total - value;
2020
}
2121

2222
}

Runtime/DataStructures/Accumulators/Vector2IntAccumulator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ namespace Zigurous.Architecture
88
public sealed class Vector2IntAccumulator : ValueAccumulator<Vector2Int>
99
{
1010
/// <inheritdoc/>
11-
protected override Vector2Int defaultValue => Vector2Int.zero;
11+
protected override Vector2Int DefaultValue => Vector2Int.zero;
1212

1313
/// <inheritdoc/>
1414
/// <param name="value">The value to add to the total.</param>
15-
protected override Vector2Int Add(Vector2Int value) => total + value;
15+
protected override Vector2Int Add(Vector2Int value) => Total + value;
1616

1717
/// <inheritdoc/>
1818
/// <param name="value">The value to subtract from the total.</param>
19-
protected override Vector2Int Subtract(Vector2Int value) => total - value;
19+
protected override Vector2Int Subtract(Vector2Int value) => Total - value;
2020
}
2121

2222
}

Runtime/DataStructures/Accumulators/Vector3Accumulator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ namespace Zigurous.Architecture
88
public sealed class Vector3Accumulator : ValueAccumulator<Vector3>
99
{
1010
/// <inheritdoc/>
11-
protected override Vector3 defaultValue => Vector3.zero;
11+
protected override Vector3 DefaultValue => Vector3.zero;
1212

1313
/// <inheritdoc/>
1414
/// <param name="value">The value to add to the total.</param>
15-
protected override Vector3 Add(Vector3 value) => total + value;
15+
protected override Vector3 Add(Vector3 value) => Total + value;
1616

1717
/// <inheritdoc/>
1818
/// <param name="value">The value to subtract from the total.</param>
19-
protected override Vector3 Subtract(Vector3 value) => total - value;
19+
protected override Vector3 Subtract(Vector3 value) => Total - value;
2020
}
2121

2222
}

Runtime/DataStructures/Accumulators/Vector3IntAccumulator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ namespace Zigurous.Architecture
88
public sealed class Vector3IntAccumulator : ValueAccumulator<Vector3Int>
99
{
1010
/// <inheritdoc/>
11-
protected override Vector3Int defaultValue => Vector3Int.zero;
11+
protected override Vector3Int DefaultValue => Vector3Int.zero;
1212

1313
/// <inheritdoc/>
1414
/// <param name="value">The value to add to the total.</param>
15-
protected override Vector3Int Add(Vector3Int value) => total + value;
15+
protected override Vector3Int Add(Vector3Int value) => Total + value;
1616

1717
/// <inheritdoc/>
1818
/// <param name="value">The value to subtract from the total.</param>
19-
protected override Vector3Int Subtract(Vector3Int value) => total - value;
19+
protected override Vector3Int Subtract(Vector3Int value) => Total - value;
2020
}
2121

2222
}

Runtime/DataStructures/Accumulators/Vector4Accumulator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ namespace Zigurous.Architecture
88
public sealed class Vector4Accumulator : ValueAccumulator<Vector4>
99
{
1010
/// <inheritdoc/>
11-
protected override Vector4 defaultValue => Vector4.zero;
11+
protected override Vector4 DefaultValue => Vector4.zero;
1212

1313
/// <inheritdoc/>
1414
/// <param name="value">The value to add to the total.</param>
15-
protected override Vector4 Add(Vector4 value) => total + value;
15+
protected override Vector4 Add(Vector4 value) => Total + value;
1616

1717
/// <inheritdoc/>
1818
/// <param name="value">The value to subtract from the total.</param>
19-
protected override Vector4 Subtract(Vector4 value) => total - value;
19+
protected override Vector4 Subtract(Vector4 value) => Total - value;
2020
}
2121

2222
}

0 commit comments

Comments
 (0)