-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from AvantTeam/custom-stat-moment
Convert graph stat display to custom stats
- Loading branch information
Showing
9 changed files
with
107 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package unity.world.meta; | ||
|
||
import mindustry.world.meta.*; | ||
|
||
public class UnityStat{ | ||
public static final Stat | ||
|
||
friction = new Stat("unity-friction", UnityStatCat.torque), | ||
inertia = new Stat("unity-inertia", UnityStatCat.torque), | ||
maxSpeed = new Stat("unity-maxspeed", UnityStatCat.torque), | ||
maxTorque = new Stat("unity-maxtorque", UnityStatCat.torque), | ||
|
||
emissivity = new Stat("unity-emissiveness", UnityStatCat.heat), | ||
heatCapacity = new Stat("unity-heatcapacity", UnityStatCat.heat), | ||
heatConductivity = new Stat("unity-heatconductivity", UnityStatCat.heat), | ||
maxTemperature = new Stat("unity-maxtemp", UnityStatCat.heat), | ||
|
||
crucibleCapacity = new Stat("unity-cruciblecapacity", UnityStatCat.crucible), | ||
crucibleMeltingPoints = new Stat("unity-cruciblemelts", UnityStatCat.crucible); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package unity.world.meta; | ||
|
||
import mindustry.world.meta.*; | ||
|
||
public class UnityStatCat{ | ||
public static final StatCat | ||
|
||
torque = new StatCat("unity-torque"), | ||
heat = new StatCat("unity-heat"), | ||
crucible = new StatCat("unity-crucible"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package unity.world.meta; | ||
|
||
import mindustry.world.meta.*; | ||
|
||
public class UnityStatUnit{ | ||
public static final StatUnit | ||
|
||
rpm = new StatUnit("unity-rpm"), | ||
torque = new StatUnit("unity-torque"), | ||
|
||
celcius = new StatUnit("unity-celcius", false); | ||
} |