fixed drawpixel optimization
minor class refactoring
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
namespace FOU.Scripts.Elements;
|
||||
|
||||
public abstract class Solid : Element {
|
||||
protected Solid(int x, int y, ref Chunk chunk) : base(x, y, chunk) { }
|
||||
protected Solid(int x, int y, ref Chunk chunk) : base(x, y, chunk) {
|
||||
MarkForUpdate();
|
||||
}
|
||||
|
||||
public override bool Update() {
|
||||
if (!base.Update()) return false;
|
||||
if (lastMove + STEPS_UNTIL_INACTIVE < Engine.GetFramesDrawn()) Active = false;
|
||||
|
||||
Tick();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user