mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-23 07:11:16 -07:00
Bounded logic property
This commit is contained in:
parent
c122aa85bf
commit
042bbffe77
2 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ import arc.scene.ui.layout.*;
|
|||
import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import mindustry.ai.*;
|
||||
import mindustry.ai.types.*;
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.core.*;
|
||||
|
|
@ -105,6 +106,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||
case shootX -> World.conv(aimX());
|
||||
case shootY -> World.conv(aimY());
|
||||
case flag -> flag;
|
||||
case bounded -> controller instanceof LogicAI || controller instanceof Player ? 1 : 0;
|
||||
case payloadCount -> self() instanceof Payloadc pay ? pay.payloads().size : 0;
|
||||
default -> 0;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ public enum LAccess{
|
|||
team,
|
||||
type,
|
||||
flag,
|
||||
bounded,
|
||||
name,
|
||||
config,
|
||||
payloadCount,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue