generated from GlennFolker/MindustryModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
182249f
commit 9f5610f
Showing
11 changed files
with
284 additions
and
12 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
2 changes: 1 addition & 1 deletion
2
src/confictura/graphics/ExtEffect.java → ...confictura/entities/effect/ExtEffect.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package confictura.graphics; | ||
package confictura.entities.effect; | ||
|
||
import arc.func.*; | ||
import arc.graphics.*; | ||
|
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,179 @@ | ||
package confictura.entities.effect; | ||
|
||
import arc.math.geom.*; | ||
import arc.util.io.*; | ||
import confictura.gen.*; | ||
import ent.anno.Annotations.*; | ||
import mindustry.entities.*; | ||
import mindustry.gen.*; | ||
import mindustry.world.*; | ||
import mindustry.world.blocks.environment.*; | ||
|
||
@EntityPoint | ||
public class FxData implements Posc, Rotc{ | ||
public Posc delegate; | ||
public Object data; | ||
|
||
public int id = EntityGroup.nextId(); | ||
|
||
protected FxData(){} | ||
|
||
public static FxData create(){ | ||
return new FxData(); | ||
} | ||
|
||
@Override | ||
public Floor floorOn(){ | ||
return delegate.floorOn(); | ||
} | ||
|
||
@Override | ||
public Building buildOn(){ | ||
return delegate.buildOn(); | ||
} | ||
|
||
@Override | ||
public boolean onSolid(){ | ||
return delegate.onSolid(); | ||
} | ||
|
||
@Override | ||
public float getX(){ | ||
return delegate.getX(); | ||
} | ||
|
||
@Override | ||
public float getY(){ | ||
return delegate.getY(); | ||
} | ||
|
||
@Override | ||
public float x(){ | ||
return delegate.getX(); | ||
} | ||
|
||
@Override | ||
public float y(){ | ||
return delegate.getY(); | ||
} | ||
|
||
@Override | ||
public float rotation(){ | ||
return delegate instanceof Rotc rot ? rot.rotation() : 0f; | ||
} | ||
|
||
@Override | ||
public int tileX(){ | ||
return delegate.tileX(); | ||
} | ||
|
||
@Override | ||
public int tileY(){ | ||
return delegate.tileY(); | ||
} | ||
|
||
@Override | ||
public Block blockOn(){ | ||
return delegate.blockOn(); | ||
} | ||
|
||
@Override | ||
public Tile tileOn(){ | ||
return delegate.tileOn(); | ||
} | ||
|
||
// These setters do nothing; why would anybody want to modify state from effects? | ||
@Override | ||
public void set(Position position){} | ||
|
||
@Override | ||
public void set(float x, float y){} | ||
|
||
@Override | ||
public void trns(Position position){} | ||
|
||
@Override | ||
public void trns(float x, float y){} | ||
|
||
@Override | ||
public void x(float x){} | ||
|
||
@Override | ||
public void y(float y){} | ||
|
||
@Override | ||
public void rotation(float rotation){} | ||
|
||
@Override | ||
@SuppressWarnings("unchecked") | ||
public <T extends Entityc> T self(){ | ||
return (T)this; | ||
} | ||
|
||
@Override | ||
@SuppressWarnings("unchecked") | ||
public <T> T as(){ | ||
return (T)this; | ||
} | ||
|
||
@Override | ||
public boolean isAdded(){ | ||
return delegate.isAdded(); | ||
} | ||
|
||
@Override | ||
public boolean isLocal(){ | ||
return delegate.isLocal(); | ||
} | ||
|
||
@Override | ||
public boolean isNull(){ | ||
return delegate.isNull(); | ||
} | ||
|
||
@Override | ||
public boolean isRemote(){ | ||
return delegate.isRemote(); | ||
} | ||
|
||
@Override | ||
public boolean serialize(){ | ||
return false; | ||
} | ||
|
||
@Override | ||
public int classId(){ | ||
return EntityRegistry.getID(FxData.class); | ||
} | ||
|
||
@Override | ||
public int id(){ | ||
return id; | ||
} | ||
|
||
@Override | ||
public void id(int id){ | ||
this.id = id; | ||
} | ||
|
||
@Override | ||
public void add(){} | ||
|
||
@Override | ||
public void remove(){} | ||
|
||
@Override | ||
public void update(){} | ||
|
||
@Override | ||
public void write(Writes writes){} | ||
|
||
@Override | ||
public void read(Reads reads){} | ||
|
||
@Override | ||
public void afterRead(){} | ||
|
||
@Override | ||
public void afterAllRead(){} | ||
} |
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.