mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-12 03:37:27 +07:00
Team cleanup
This commit is contained in:
parent
2b22b7e7e4
commit
36ec88e2e2
@ -128,9 +128,9 @@ public class Vars implements Loadable{
|
||||
public static Fi dataDirectory;
|
||||
/** data subdirectory used for screenshots */
|
||||
public static Fi screenshotDirectory;
|
||||
/** data subdirectory used for custom mmaps */
|
||||
/** data subdirectory used for custom maps */
|
||||
public static Fi customMapDirectory;
|
||||
/** data subdirectory used for custom mmaps */
|
||||
/** data subdirectory used for custom map previews */
|
||||
public static Fi mapPreviewDirectory;
|
||||
/** tmp subdirectory for map conversion */
|
||||
public static Fi tmpDirectory;
|
||||
|
@ -1,12 +1,23 @@
|
||||
package mindustry.game;
|
||||
|
||||
import arc.func.*;
|
||||
import arc.struct.*;
|
||||
import mindustry.*;
|
||||
import mindustry.entities.type.*;
|
||||
import mindustry.world.*;
|
||||
|
||||
/** Class for various team-based utilities. */
|
||||
public class Teams{
|
||||
private TeamData[] map = new TeamData[256];
|
||||
/** Maps team IDs to team data. */
|
||||
private Array<TeamData> map = new Array<>();
|
||||
/** Active teams. */
|
||||
private Array<TeamData> active = new Array<>();
|
||||
|
||||
public <T> T eachEnemyCore(Team team, Func<TileEntity, T> ret){
|
||||
T out = null;
|
||||
//todo each enemy, each enemy core...
|
||||
return out;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a team.
|
||||
|
Loading…
Reference in New Issue
Block a user