mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-25 22:17:59 +07:00
Docs
This commit is contained in:
parent
429e07adec
commit
4d680ec91d
@ -141,6 +141,7 @@ public class Blocks{
|
||||
//units - erekir
|
||||
tankFabricator, shipFabricator, mechFabricator,
|
||||
|
||||
//TODO names
|
||||
basicReconstructor,
|
||||
advancedReconstructor,
|
||||
|
||||
|
@ -87,7 +87,6 @@ public abstract class DrawPart{
|
||||
return p -> Mathf.slope(get(p));
|
||||
}
|
||||
|
||||
|
||||
default PartProgress clamp(){
|
||||
return p -> Mathf.clamp(get(p));
|
||||
}
|
||||
|
@ -180,8 +180,10 @@ public class ContentParser{
|
||||
//I have to hard-code this, no easy way of getting parameter names, unfortunately
|
||||
return switch(op){
|
||||
case "inv" -> base.inv();
|
||||
case "slope" -> base.slope();
|
||||
case "clamp" -> base.clamp();
|
||||
case "delay" -> base.delay(data.getFloat("amount"));
|
||||
case "sustain" -> base.sustain(data.getFloat("offset", 0f), data.getFloat("grow", 0f), data.getFloat("sustain"));
|
||||
case "shorten" -> base.shorten(data.getFloat("amount"));
|
||||
case "add" -> base.add(data.getFloat("amount"));
|
||||
case "blend" -> base.blend(parser.readValue(PartProgress.class, data.get("other")), data.getFloat("amount"));
|
||||
|
Loading…
Reference in New Issue
Block a user