SteamWar/BauSystem2.0
Archiviert
12
0

Trace Refactor #233

Zusammengeführt
YoyoNow hat 121 Commits von TracerGUI nach master 2024-04-21 16:03:26 +02:00 zusammengeführt
Nur Änderungen aus Commit 335e2cc437 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -108,6 +108,12 @@ public class TraceManager implements Listener {
return new ArrayList<>(traces);
}
/** Toggles trace show on for player
*
* @param player
* @param viewFlags
* @param bundleFilter
*/
public void show(Player player, ViewFlag[] viewFlags, BundleFilter bundleFilter) {
viewFlagMap.put(player, viewFlags);
bundleFilterMap.put(player, bundleFilter);
@ -116,6 +122,10 @@ public class TraceManager implements Listener {
trace.render(player, viewFlags, bundleFilter);
}
/** Toggles trace show of for player
*
* @param player
*/
public void hide(Player player){
for(Trace trace: traces)
trace.hide(player);