Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 3339bdd

Browse files
committed
Move AltUnit class to a separate file
1 parent 569909d commit 3339bdd

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

MicroEngineerProject/MicroEngineer/Entries/BaseEntry.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,5 @@ public virtual string UnitDisplay
182182
}
183183

184184
public virtual void RefreshData() { }
185-
}
186-
187-
public class AltUnit
188-
{
189-
[JsonProperty]
190-
public bool IsActive;
191-
[JsonProperty]
192-
public string Unit;
193-
[JsonProperty]
194-
public float Factor;
195-
}
185+
}
196186
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Newtonsoft.Json;
2+
3+
namespace MicroMod
4+
{
5+
/// <summary>
6+
/// An alternative unit, activated by double-clicking the entry
7+
/// </summary>
8+
public class AltUnit
9+
{
10+
[JsonProperty]
11+
public bool IsActive;
12+
[JsonProperty]
13+
public string Unit;
14+
[JsonProperty]
15+
public float Factor;
16+
}
17+
}

0 commit comments

Comments
 (0)