-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beyond-aion:4.8' into 4.8
- Loading branch information
Showing
20 changed files
with
249 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 0 additions & 113 deletions
113
game-server/src/com/aionemu/gameserver/model/gameobjects/player/MacroList.java
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
game-server/src/com/aionemu/gameserver/model/gameobjects/player/Macros.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.aionemu.gameserver.model.gameobjects.player; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
* @author Aquanox, nrg | ||
*/ | ||
public class Macros { | ||
|
||
private final Map<Integer, Macro> macrosById = new HashMap<>(12); | ||
|
||
public synchronized List<Macro> getAll() { | ||
return new ArrayList<>(macrosById.values()); | ||
} | ||
|
||
/** | ||
* @return <tt>true</tt> if given macro ID was not used before. | ||
*/ | ||
public synchronized boolean add(int macroId, String macroXML) { | ||
if (macroId < 1 || macroId > 12) | ||
throw new IllegalArgumentException("Invalid macro ID: " + macroId); | ||
return macrosById.put(macroId, new Macro(macroId, macroXML)) == null; | ||
} | ||
|
||
public synchronized boolean remove(int macroId) { | ||
return macrosById.remove(macroId) != null; | ||
} | ||
|
||
public record Macro(int id, String xml) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.