Skip to content

Commit

Permalink
Add TemperatureDay & ...Min & ...Max properties
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub-TC committed May 2, 2023
1 parent e4d36c9 commit 99d4ecd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions EmpyrionScripting.Interface/IPlayfieldDetails.cs
Expand Up @@ -13,5 +13,8 @@ public interface IPlayfieldDetails
string PlayfieldType { get; }
double Radiation { get; }
int[] TemperatureMinMax { get; }
int TemperatureDay { get; set; }
int TemperatureMin { get; }
int TemperatureMax { get; }
}
}
3 changes: 3 additions & 0 deletions EmpyrionScripting/DataWrapper/PlayfieldData.cs
Expand Up @@ -24,6 +24,9 @@ public string Description

public double Gravity { get; set; }
public int[] TemperatureMinMax { get; set; }
public int TemperatureDay { get; set; }
public int TemperatureMin => TemperatureMinMax == null || TemperatureMinMax.Length == 0 ? TemperatureDay : TemperatureMinMax.FirstOrDefault();
public int TemperatureMax => TemperatureMinMax == null || TemperatureMinMax.Length == 0 ? TemperatureDay : TemperatureMinMax.LastOrDefault();
public bool AtmosphereBreathable { get; set; }
public double AtmosphereO2 { get; set; }
public double AtmosphereDensity { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions EmpyrionScripting/Properties/AssemblyInfo.cs
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("11.4.3.0")]
[assembly: AssemblyFileVersion("11.4.3.0")]
[assembly: AssemblyVersion("11.4.4.0")]
[assembly: AssemblyFileVersion("11.4.4.0")]

0 comments on commit 99d4ecd

Please sign in to comment.