Unit payload enter command snapping

This commit is contained in:
Anuken
2025-04-26 00:04:25 -04:00
parent cbc9866c8c
commit ec6740c8da
4 changed files with 25 additions and 3 deletions

View File

@@ -24,6 +24,8 @@ public class UnitCommand extends MappableContent{
public boolean drawTarget = false;
/** Whether to reset targets when switching to or from this command. */
public boolean resetTarget = true;
/** Whether to snap the command destination to ally buildings. */
public boolean snapToBuilding = false;
/** */
public boolean exactArrival = false;
/** If true, this command refreshes the list of stances when selected TODO: do not use, this will likely be removed later!*/
@@ -90,6 +92,7 @@ public class UnitCommand extends MappableContent{
switchToMove = false;
drawTarget = true;
resetTarget = false;
snapToBuilding = true;
}};
loadUnitsCommand = new UnitCommand("loadUnits", "upload", Binding.unit_command_load_units, null){{
switchToMove = false;