mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-23 04:52:38 -08:00
Moved entity package from Arc / Entity code cleanup
This commit is contained in:
parent
6b2f2d0664
commit
0dd9d2b460
177 changed files with 1872 additions and 666 deletions
|
|
@ -2,8 +2,6 @@ package io.anuke.annotations;
|
|||
|
||||
import com.squareup.javapoet.*;
|
||||
import io.anuke.annotations.IOFinder.ClassSerializer;
|
||||
import io.anuke.annotations.MethodEntry;
|
||||
import io.anuke.annotations.Utils;
|
||||
|
||||
import javax.lang.model.element.Modifier;
|
||||
import javax.lang.model.element.TypeElement;
|
||||
|
|
@ -52,7 +50,7 @@ public class RemoteReadGenerator{
|
|||
Constructor<TypeName> cons = TypeName.class.getDeclaredConstructor(String.class);
|
||||
cons.setAccessible(true);
|
||||
|
||||
TypeName playerType = cons.newInstance("io.anuke.mindustry.entities.Player");
|
||||
TypeName playerType = cons.newInstance("io.anuke.mindustry.entities.type.Player");
|
||||
//add player parameter
|
||||
readMethod.addParameter(playerType, "player");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ public class RemoteWriteGenerator{
|
|||
return;
|
||||
}
|
||||
|
||||
if(!elem.getParameters().get(0).asType().toString().equals("io.anuke.mindustry.entities.Player")){
|
||||
if(!elem.getParameters().get(0).asType().toString().equals("io.anuke.mindustry.entities.type.Player")){
|
||||
Utils.messager.printMessage(Kind.ERROR, "Client invoke methods should have a first parameter of type Player.", elem);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue