Autogeneration of some IO code

This commit is contained in:
Anuken
2020-02-13 13:30:30 -05:00
parent 47f075133f
commit ad248e2e20
40 changed files with 163 additions and 74 deletions

View File

@@ -12,12 +12,12 @@ import static mindustry.Vars.net;
@Component
abstract class FlyingComp implements Posc, Velc, Healthc, Hitboxc{
transient float x, y;
transient Vec2 vel;
@Import float x, y;
@Import Vec2 vel;
float elevation;
float drownTime;
float splashTimer;
transient float splashTimer;
boolean isGrounded(){
return elevation < 0.001f;