Add support for generating setters
This commit is contained in:
@@ -35,4 +35,6 @@ import java.lang.annotation.Target;
|
|||||||
public @interface Export
|
public @interface Export
|
||||||
{
|
{
|
||||||
String value();
|
String value();
|
||||||
|
|
||||||
|
boolean setter() default false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,4 +35,6 @@ import java.lang.annotation.Target;
|
|||||||
public @interface Import
|
public @interface Import
|
||||||
{
|
{
|
||||||
String value();
|
String value();
|
||||||
|
|
||||||
|
boolean setter() default false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,6 +119,9 @@ public interface Client extends GameEngine
|
|||||||
@Import("username")
|
@Import("username")
|
||||||
String getUsername();
|
String getUsername();
|
||||||
|
|
||||||
|
@Import(value = "username", setter = true)
|
||||||
|
void setUsername(String username);
|
||||||
|
|
||||||
@Import("menuActions")
|
@Import("menuActions")
|
||||||
String[] getMenuActions();
|
String[] getMenuActions();
|
||||||
|
|
||||||
@@ -149,8 +152,6 @@ public interface Client extends GameEngine
|
|||||||
@Import("rootInterface")
|
@Import("rootInterface")
|
||||||
int getRootInterface();
|
int getRootInterface();
|
||||||
|
|
||||||
//void setUsername(String var1);
|
|
||||||
|
|
||||||
@Import("sendGameMessage")
|
@Import("sendGameMessage")
|
||||||
void sendGameMessage(int var1, String var2, String var3);
|
void sendGameMessage(int var1, String var2, String var3);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user