Re-added tap event for servers
This commit is contained in:
@@ -274,6 +274,15 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
Core.app.post(() -> Events.fire(new ConfigEvent(tile, player, value)));
|
||||
}
|
||||
|
||||
//only useful for servers or local mods, and is not replicated across clients
|
||||
//uses unreliable packets due to high frequency
|
||||
@Remote(targets = Loc.both, called = Loc.both, unreliable = true)
|
||||
public static void tileTap(@Nullable Player player, Tile tile){
|
||||
if(tile == null) return;
|
||||
|
||||
Events.fire(new TapEvent(player, tile));
|
||||
}
|
||||
|
||||
@Remote(targets = Loc.both, called = Loc.both, forward = true)
|
||||
public static void unitControl(Player player, @Nullable Unit unit){
|
||||
if(player == null) return;
|
||||
|
||||
Reference in New Issue
Block a user