Autogenerated interpolation
This commit is contained in:
@@ -5,13 +5,5 @@ 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];
|
||||
}
|
||||
}
|
||||
@SyncField(false) float rotation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user