ScriptEntityParticle:

-Particles can now start or end at a certain tick, and loop or not loop.
-Added setSize(), getWidth() and getHeight() functions.
-Added setOffset(), getOffsetX(), and getOffsetY() functions.
-Added setAnimRate() and getAnimRate() functions.
This commit is contained in:
Luis C.M committed 2022-05-06 01:22:48 -05:00
1 parent 728269ff87
commit 2d2933e873
5 files changed
+55 -16

No files matched your search

@@ -35,7 +35,10 @@ public class ScriptEntityParticle {
public int width = -1, height = -1;
public int offsetX = 0, offsetY = 0;
public int animRate = 0;
public boolean animLoop = true;
public int animStart = 0, animEnd = -1;
public boolean facePlayer = true;
@@ -53,7 +56,8 @@ public class ScriptEntityParticle {
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
facePlayer, width, height, offsetX, offsetY, animRate,
facePlayer, width, height, offsetX, offsetY,
animRate, animLoop, animStart, animEnd,
entityID
);
}
@@ -72,8 +76,20 @@ public class ScriptEntityParticle {
public int getOffsetX() { return offsetX; }
public int getOffsetY() { return offsetY; }
public void setAnim(int animRate, boolean animLoop, int animStart, int animEnd){
this.animRate = animRate;
this.animLoop = animLoop;
this.animStart = animStart;
this.animEnd = animEnd;
}
public void setAnimRate(int animRate) { this.animRate = animRate; }
public int getAnimRate() { return animRate; }
public void setAnimLoop(boolean animLoop) { this.animLoop = animLoop; }
public boolean getAnimLoop() { return animLoop; }
public void setAnimStart(int animStart) { this.animStart = animStart; }
public int getAnimStart() { return animStart; }
public void setAnimEnd(int animEnd) { this.animEnd = animEnd; }
public int getAnimEnd() { return animEnd; }
public boolean getFacePlayer() { return facePlayer; }
public void setFacePlayer(boolean facePlayer) { this.facePlayer = facePlayer; }
@@ -82,7 +82,8 @@ public class ScriptEntity<T extends Entity> implements IEntity {
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
true, -1, -1, 0,0, 0,
true, -1, -1, 0,0,
0, true, 0, 0,
entityID
);
}
@@ -101,7 +102,8 @@ public class ScriptEntity<T extends Entity> implements IEntity {
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
true, -1, -1, 0,0,0,
true, -1, -1, 0,0,
0, true, 0, 0,
entityID
);
}
@@ -119,7 +121,8 @@ public class ScriptEntity<T extends Entity> implements IEntity {
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
true, -1, -1, 0,0,0,
true, -1, -1, 0,0,
0, true, 0, 0,
entityID
);
}
@@ -136,7 +139,8 @@ public class ScriptEntity<T extends Entity> implements IEntity {
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
true, -1, -1, 0,0,0,
true, -1, -1, 0,0,
0, true, 0, 0,
entityID
);
}
@@ -152,7 +156,8 @@ public class ScriptEntity<T extends Entity> implements IEntity {
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
true, -1, -1, 0,0,0,
true, -1, -1, 0,0,
0, true, 0, 0,
entityID
);
}
@@ -167,7 +172,8 @@ public class ScriptEntity<T extends Entity> implements IEntity {
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
true, -1, -1, 0,0,0,
true, -1, -1, 0,0,
0, true, 0, 0,
entityID
);
}