Implemented ground mech boosting
This commit is contained in:
17
core/src/mindustry/entities/comp/RotComp.java
Normal file
17
core/src/mindustry/entities/comp/RotComp.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package mindustry.entities.comp;
|
||||
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.gen.*;
|
||||
|
||||
@Component
|
||||
abstract class RotComp implements Entityc{
|
||||
float rotation;
|
||||
|
||||
void interpolate(){
|
||||
Syncc sync = as(Syncc.class);
|
||||
|
||||
if(sync.interpolator().values.length > 0){
|
||||
rotation = sync.interpolator().values[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user